 html, body {
      height: 100%;
      margin: 0;
      padding: 0;
      background: linear-gradient(135deg, #1e2954 0%, #7d1236 100%);
      font-family: 'Open Sans', Arial, sans-serif;
    }
    body {
      min-height: 100vh;
      min-width: 100vw;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .outer {
      min-height: 100vh;
      width: 100vw;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .container {
      background: #fff9f4;
      border-radius: 2rem;
      box-shadow: 0 8px 32px 0 rgba(34,36,38,0.14), 0 1.5px 7px 0 rgba(125,18,54,0.13);
      border: 2px solid #ecc264;
      padding: 2.2rem 2rem 2rem 2rem;
      max-width: 420px;
      width: 96vw;
      text-align: center;
      position: relative;
      box-sizing: border-box;
    }
    .container::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 0;
      width: 60px;
      height: 4px;
      border-radius: 2px;
      background: linear-gradient(90deg, #ecc264, #c7a008);
      transform: translateX(-50%);
    }

    .logo {
        margin-bottom: 1.2rem;
      }
      .logo-text {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 2rem;
        color: #1e2954;
        letter-spacing: 1.5px;
        text-shadow: 1px 1px 8px #f6e4b5, 0 0 2px #ecc264;
      }

      .header {
        font-family: 'Poppins', sans-serif;
        font-size: 1.4rem;
        color: #7d1236;
        font-weight: 600;
        margin-bottom: 0.5rem;
      }
      .subtitle {
        font-size: 1rem;
        color: #b18140;
        margin-bottom: 1.2rem;
      }

      .form {
        margin: 0;
        padding: 0;
      }
      .form input {
        width: 100%;
        padding: 0.8rem 1rem;
        margin: 0.35rem 0 0.65rem 0;
        border: 1.5px solid #ecc264;
        border-radius: 1rem;
        background: #fffaf5;
        font-size: 1rem;
        transition: border 0.3s, box-shadow 0.3s;
        font-family: 'Open Sans', sans-serif;
        color: #333;
        outline: none;
        box-sizing: border-box;
        display: block;
      }
      .form input:focus {
        border: 2px solid #7d1236;
        box-shadow: 0 0 7px #ecc264;
        background: #fffbe9;
      }
      .btn {
        width: 100%;
        padding: 0.85rem 0;
        background: linear-gradient(90deg, #1e2954 0%, #7d1236 100%);
        color: #fff;
        font-family: 'Poppins', sans-serif;
        font-size: 1.08rem;
        font-weight: 700;
        border: none;
        border-radius: 1rem;
        box-shadow: 0 4px 18px #ecc26460;
        cursor: pointer;
        margin-bottom: 1rem;
        transition: background 0.3s, box-shadow 0.3s;
      }
      .btn:hover {
        background: linear-gradient(90deg, #7d1236 0%, #1e2954 100%);
        box-shadow: 0 6px 26px #ecc264a0;
      }

      .divider {
        display: flex;
        align-items: center;
        margin: 0.7rem 0 1.2rem 0;
      }
      .divider::before,
      .divider::after {
        content: '';
        flex: 1;
        height: 1.5px;
        background: linear-gradient(90deg, #fffaf5 60%, #ecc264 100%);
        border-radius: 2px;
      }
      .divider span {
        margin: 0 0.7rem;
        color: #b18140;
        font-weight: 600;
        font-size: 1rem;
      }

      .social-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.7rem 0;
        border: 1.5px solid #ecc264;
        border-radius: 1rem;
        background: #fff;
        color: #333;
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: border 0.2s, background 0.2s;
      }
      .social-btn:hover {
        border: 1.5px solid #7d1236;
        background: #fffbe9;
      }
      .social-btn img {
        height: 20px;
        width: 20px;
        margin-right: 0.6rem;
      }

      .link {
        margin-top: 0.8rem;
        color: #7d1236;
        font-size: 1rem;
        word-break: break-word;
      }
      .link a {
        color: #b18140;
        font-weight: 700;
        text-decoration: none;
        margin-left: 0.25rem;
        transition: color 0.2s;
      }
      .link a:hover {
        color: #1e2954;
        text-decoration: underline;
      }
     
      .forgot-link {
        display: block;
        text-align: right;
        color: #7d1236;
        font-size: 0.95rem;
        text-decoration: none;
        margin-bottom: 1.2rem;
        transition: color 0.2s;
        font-weight: 500;
    }

    .forgot-link:hover {
        color: #b18140;
        text-decoration: underline;
    }

    .social-login {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
    }

          
    .social-register {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 0.5rem;
      }
     

      @media (max-width: 600px) {
        .outer {
          align-items: center;
          justify-content: center;
          min-height: 100vh;
        }
        .container {
          padding: 1.1rem 0.6rem 1.1rem 0.6rem;
          max-width: 99vw;
          min-width: 0;
          border-radius: 1.1rem;
        }
        .logo-text {
          font-size: 1.15rem;
        }
        .header {
          font-size: 1.02rem;
        }
        .form input, .btn, .social-btn {
          font-size: 0.98rem;
          padding: 0.58rem 0.5rem;
          border-radius: 0.75rem;
        }
        .divider span {
          font-size: 0.93rem;
        }
      }

      @media (max-width: 400px) {
        .container {
          padding: 0.6rem 0.15rem 0.7rem 0.15rem;
        }
        .logo-text {
          font-size: 0.93rem;
        }
        .header {
          font-size: 0.93rem;
        }
      }

.text-danger {
    color: #c82333;
}


.form-row.remember-me-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    font-size: 0.99rem;
    font-weight: 500;
    color: #1e2954;
    cursor: pointer;
    user-select: none;
}

    .custom-checkbox input[type="checkbox"] {
        display: none;
    }

    .custom-checkbox .checkmark {
        width: 18px;
        height: 18px;
        background: #fff9f4;
        border: 1.3px solid #ecc264;
        border-radius: 0.4em;
        margin-right: 0.65em;
        position: relative;
        display: inline-block;
        transition: border 0.2s;
    }

    .custom-checkbox input[type="checkbox"]:checked + .checkmark {
        background: #ecc264;
        border-color: #ecc264;
    }

    .custom-checkbox .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    .custom-checkbox input[type="checkbox"]:checked + .checkmark:after {
        display: block;
    }

    .custom-checkbox .checkmark:after {
        left: 5px;
        top: 1.5px;
        width: 5px;
        height: 10px;
        border: solid #7d1236;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        content: "";
        position: absolute;
    }

.forgot-link {
    color: #7d1236;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    transition: color 0.14s;
}

    .forgot-link:hover {
        color: #b18140;
    }

@@media (max-width: 480px) {
    .form-row.remember-me-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        margin-bottom: 1.1rem;
    }
}