/* ===== Reset ===== */
@font-face {

   font-family: IRANSans;
   src: url("../Fonts/IRANSansXFaNum-Medium.ttf");
 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: IRANSans;
}

/* ===== Background Animation ===== */

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Login Box ===== */
.login-box {
    width: 100%;
    max-width: 360px;
    padding: 35px 30px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #222;
}

/* ===== Inputs ===== */
.input-group {
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* ===== Button ===== */
.login-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ===== Extra ===== */
.extra {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.extra a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
    .login-box {
        margin: 0 15px;
        padding: 30px 20px;
    }
}
/* لوگو بالای باکس */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeDown 0.8s ease;
}

.logo-img {
    width: 157px;
    height: 110px;
    border-radius: 0%;
}

/* انیمیشن لوگو */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: IRANSans;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f0f4f8;
  }

  .input-container {
    position: relative;
    width: 350px;
  }

  input {
      font-family: IRANSans;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 10px;
    outline: none;
    text-align: center; /* متن وسط‌چین */
    transition: all 0.3s ease;
    background: #fff;
    direction: rtl; /* پشتیبانی از فارسی */
  }

  /* انیمیشن هنگام فعال شدن */
  input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    transform: scale(1.05);
  }

  label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    text-align: center;
  }

  /* وقتی input فعال یا پر شده است */
  input:focus + label,
  input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: #4CAF50;
    background: #fff;
    padding: 0 5px;
  }
  
 

  
