﻿/* ================= LOGIN PAGE (isolated) ================= */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.login-alert-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.login-alert-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f97316;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.login-alert-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .login-alert-content strong {
        font-weight: 800;
    }

    .login-alert-content span {
        color: #7c2d12;
    }
.login-page {
    position: fixed;
    inset: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.login-bg {
    position: absolute;
    inset: 0;
    background: url("/images/StartPage.png") no-repeat left center;
    background-size: cover;
    z-index: 1;
}

/* ================= CARD ================= */
.login-card {
    position: absolute;
    right: 3%;
    top: 52%;
    transform: translateY(-50%);
    width: 440px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    padding: 28px;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* ================= FLOATING LOGO ================= */
.login-brand {
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 220px;
    z-index: 5;
}

    .login-brand img {
        width: 200px;
        height: auto;
        display: block;
    }

/* ================= CONTENT ================= */
.login-content {
    flex: 1;
    padding-top: 62px;
}

/* ================= TITLE ================= */
.login-title {
    font-size: 26px;
    line-height: 1.15;
    font-weight: 900;
    text-align: center;
    margin: 0 0 14px;
}

/* ================= FORM ================= */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* optional: makes form look centered and clean */
    max-width: 380px;
    margin: 0 auto;
}

.login-label {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-top: 6px;
}

.login-input {
    height: 36px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

    .login-input:focus {
        border-color: #4a75a1;
        box-shadow: 0 0 0 3px rgba(74,117,161,0.12);
    }

/* ================= BUTTONS ================= */
.login-btn {
    width: 240px;
    height: 44px;
    padding: 0 18px;
    background: #4a75a1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

    .login-btn:hover {
        background: #3b5d81;
    }

.login-arrow {
    font-size: 18px;
}

/* ================= LOGIN ROW (center button + link right) ================= */
.login-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
    min-height: 44px;
}

.login-btn-login {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 150px; /* reduced from 260px */
}


.login-forgot {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}

    .login-forgot:hover {
        color: #4a75a1;
        border-bottom-color: #4a75a1;
    }

/* ================= SOLID DIVIDER WITH OR ================= */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: #888;
    font-size: 12px;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #d6d6d6;
    }

/* ================= SIGNUP ================= */
.login-signup-text {
    font-size: 12px;
    line-height: 1.4;
    color: #777;
    text-align: center;
    margin: 0 0 12px;
}

.login-btn-signup {
    width: 150px; /* same width as login */
    margin: 0 auto;
}


/* ================= ERRORS ================= */
.login-error {
    background: #ffecec;
    border: 1px solid #ffb7b7;
    color: #8a1f1f;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 6px;
}

.login-field-error {
    color: #c0392b;
    font-size: 12px;
}

/* ================= BACK ARROW ================= */
.login-back {
    position: absolute;
    left: 16px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #333;
    background: #fff;
    z-index: 10;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .login-back:hover {
        background: #f3f3f3;
        border-color: #bdbdbd;
    }


/*=========Show when new password created========*/
.login-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin: 10px 0 12px;
    border: 1px solid #c8e6c9;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .login-card {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: min(92vw, 460px);
        top: 52%;
    }
}
