.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    background: #ffffff;
    color: #14213d;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 20px 30px;
    position: relative;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.shape-one {
    width: 420px;
    height: 420px;
    left: -260px;
    top: 180px;
    background: var(--green-soft);
}

.shape-two {
    width: 360px;
    height: 360px;
    right: -230px;
    bottom: -80px;
    background: var(--orange-soft);
}

.brand-logo {
    margin-bottom: 28px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    width: 215px;
    height: auto;
    display: block;
}

.login-card {
    width: 100%;
    max-width: 735px;
    background: #ffffff;
    border: 1px solid #dce5e1;
    border-radius: 16px;
    padding: 42px 48px 32px;
    box-shadow: 0 12px 40px rgba(5, 96, 68, 0.06);
}

.login-title {
    font-size: 31px;
    font-weight: 800;
    color: #14213d;
    margin: 0 0 8px;
    letter-spacing: -0.7px;
}

.login-subtitle {
    font-size: 18px;
    color: #53627a;
    margin-bottom: 25px;
}

.terms-text {
    color: #53627a;
    font-size: 12.5px;
    line-height: 1.65;
    margin-bottom: 22px;
}

.terms-text a {
    color: #056044;
    text-decoration: underline;
    font-weight: 500;
}

.google-btn {
    width: 100%;
    min-height: 56px;
    border: 1px solid #dce5e1;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 7px 14px;
    cursor: pointer;
    transition: all .2s ease;
    text-align: left;
    text-decoration: none;
}

.google-btn:hover {
    border-color: #2dbd2d;
    box-shadow: 0 4px 14px rgba(45, 189, 45, .12);
    text-decoration: none;
}

.google-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-right: 12px;
}

.google-icon span {
    background: conic-gradient(
        from -45deg,
        #4285f4 0deg 90deg,
        #34a853 90deg 180deg,
        #fbbc05 180deg 270deg,
        #ea4335 270deg 360deg
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.google-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.google-title {
    color: #14213d;
    font-size: 14px;
    font-weight: 700;
}

.google-email {
    color: #53627a;
    font-size: 12px;
    margin-top: 3px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 28px 0;
    color: #53627a;
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    background: #dce5e1;
    flex: 1;
}

.login-card .form-label {
    color: #14213d;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.required {
    color: #d62929;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #53627a;
    font-size: 17px;
    z-index: 2;
}

.login-card .form-control {
    height: 54px;
    border: 1.5px solid #dce5e1;
    border-radius: 10px;
    color: #14213d;
    padding-left: 48px;
    font-size: 15px;
    box-shadow: none !important;
}

.login-card .form-control::placeholder {
    color: #7c8da7;
}

.login-card .form-control:focus {
    border-color: #2dbd2d;
    box-shadow: 0 0 0 3px rgba(45, 189, 45, .12) !important;
}

.continue-btn {
    width: 100%;
    height: 55px;
    margin-top: 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #2dbd2d, #20a920);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    transition: all .2s ease;
}

.continue-btn:hover,
.continue-btn:focus {
    background: linear-gradient(90deg, #20a920, #056044);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(45, 189, 45, .18);
}

.continue-btn:disabled {
    opacity: 0.7;
    transform: none;
}

.continue-btn i {
    margin-left: 9px;
}

.secure-message {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    color: #53627a;
    font-size: 13px;
}

.secure-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eaf7f1;
    color: #056044;
    font-size: 13px;
}

.magic-step {
    display: none;
}

.email-preview {
    background: #eaf7f1;
    border: 1px solid #dce5e1;
    border-radius: 9px;
    padding: 12px 14px;
    margin-bottom: 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.email-preview-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #14213d;
    font-size: 13px;
    font-weight: 600;
}

.email-preview-left i {
    color: #2dbd2d;
}

.change-email,
.back-btn {
    color: #056044;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
}

.back-btn {
    font-size: 13px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
}

.back-btn i {
    margin-right: 6px;
}

.login-alert {
    background: #fff6f4;
    border: 1px solid #f3c5c0;
    color: #8a2b22;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 14px;
}

.debug-link {
    margin-top: 16px;
    font-size: 13px;
}

.debug-link a {
    color: #056044;
    word-break: break-all;
}

.portal-switch {
    margin: 22px 0 0;
    text-align: center;
    color: #53627a;
    font-size: 14px;
}

.portal-switch a {
    color: #056044;
    font-weight: 600;
}

@media (max-width: 767px) {
    .login-page {
        padding: 25px 15px;
    }

    .brand-logo {
        margin-bottom: 22px;
    }

    .brand-logo img {
        width: 170px;
    }

    .login-card {
        padding: 28px 22px 25px;
        border-radius: 13px;
    }

    .login-title {
        font-size: 25px;
    }

    .login-subtitle {
        font-size: 16px;
    }

    .terms-text {
        font-size: 11.5px;
    }

    .google-btn {
        min-height: 53px;
    }

    .secure-message {
        font-size: 12px;
    }
}
