.login-page {
    min-height: calc(100vh - 160px);
    padding: 30px 0 70px;
    background: linear-gradient(180deg, #fffaf5 0%, #eef4ff 100%);
    display: flex;
    align-items: center;
}


.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 40px 44px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.login-visual img {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.login-box h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    color: #1f2937;
    margin-bottom: 12px;
}

.login-sub {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    margin-top: -6px;
    margin-bottom: 18px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}

.login-box button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
    margin-top: 8px;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
}

.login-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

.login-page-body .site-footer {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.modal-box {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
    position: relative;
    animation: modalPop 0.2s ease;
}

.modal-box h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    color: #1f2937;
}

.modal-box p {
    margin: 0 0 18px;
    color: #6b7280;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.modal-box .form-group {
    margin-bottom: 18px;
}

.modal-box input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-box input[type="email"]:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}

.modal-box button:not(.modal-close) {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.modal-box button:not(.modal-close):hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
}

#resetFeedback {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534 !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 700px) {
    .modal-box {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .modal-box h2 {
        font-size: 1.35rem;
    }
}


@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 24px;
    }

    .login-visual img {
        max-width: 420px;
    }

    .login-box {
        max-width: 620px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .login-page {
        padding: 40px 0 60px;
    }

    .login-shell {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .login-box h1 {
        font-size: 1.8rem;
    }

    .login-sub {
        font-size: 0.96rem;
    }

    .login-visual img {
        max-width: 100%;
    }
}

.site-footer {
    display: none !important;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper input {
  width: 100%;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  background: none !important;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 0;
  display: flex;
  align-items: center;
  width: auto !important;
  box-shadow: none !important;
  transform: none !important;
  margin-top: 0 !important;
}

.toggle-password:hover {
  color: #333;
}