﻿/* Message container outside the main form */
.message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    z-index: 1000;
    pointer-events: none; /* Allow clicks to pass through */
}

/* MESSAGE ALERT - Now positioned absolutely above the form */
.alert-message {
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: slideDown 0.3s ease-out;
    border: 1px solid transparent;
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto; /* Allow interaction with the message */
}

.alert-message.show {
    display: block;
}

.alert-error {
    background: #FFEBEE;
    color: var(--error);
    border-color: #FFCDD2;
}

.alert-success {
    background: #E8F5E9;
    color: var(--success);
    border-color: #C8E6C9;
}

.alert-warning {
    background: #FFF3E0;
    color: var(--warning);
    border-color: #FFE0B2;
}

.alert-info {
    background: #E3F2FD;
    color: var(--info);
    border-color: #BBDEFB;
}

/* Root variables */
:root {
    --primary: #2D4671;        /* blended color of gradient for solid use */
    --primary-start: #2D4671;  /* gradient start */
    --primary-end: #2D4671;    /* gradient end */
    --secondary: #F4A261;
    --accent: #FFD9A6;
    /*--background: #FFF7F0;*/
    --text: #3B3B3B;
    --white: #FFFFFF;
    --muted: #555555;
    --link-color: #b79f62;
    --client-color: #2D4671;
    --error: #d32f2f;
    --success: #2e7d32;
    --warning: #f57c00;
    --info: #1976d2;
}

body {
    margin: 0;
    /*font-family: "Segoe UI", sans-serif;*/
      font-family: 'Lucida Sans', sans-serif !important;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: var(--white);
    width: 328px;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.3s ease;
    margin-left:365px;
    
}

.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo h1 {
    color: var(--primary);
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.logo p {
    color: #2D4671;   
    font-weight: 760;  /* bold */
    margin-top: 13px;
    font-size: 13px;
    letter-spacing: 1px;
}


.logo-img {
    max-width: 170px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* ROLE TOGGLE */
.role-toggle {
    display: flex;
    justify-content: space-between;
    background: #E0F0FF; /* lighter blue shade for role background */
    border-radius: 10px;
    margin-bottom: 18px;
    transition: background 0.3s ease;
    position: relative;
}

.role-toggle button {
    width: 49%;
    padding: 8px 0;
    border: none;
    font-size: 13px;
    cursor: pointer;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.role-toggle button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.role-toggle button.active {
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: bounce 0.3s;
}

.role-toggle button.active.client {
    background: var(--client-color);
}

.role-toggle button.active.admin {
    background: var(--primary);
}

.hidden-radio {
    display: none !important;
    position: absolute;
    visibility: hidden;
}

@keyframes bounce {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.input-field {
    margin-top: 8px;
    margin-bottom: 13px;
}

input, .aspTextBox {
    width: 91%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #E0D6C3;
    font-size: 13px;
    background: #FFF8F0;
    transition: all 0.3s ease;
}

input:focus, .aspTextBox:focus {
    outline: none;
    border: 2px solid var(--primary);
    background: #FFFDF6;
    box-shadow: 0 0 5px rgba(37, 78, 216,0.25);
}

.login-btn {
    width: 100%;
    padding: 10px;
    background: #2D4671 !important;
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #2D4671;
    box-shadow: 0 5px 12px rgba(37, 64, 175,0.25);
    transform: scale(1.02);
}

.links-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
    font-size: 13px;
}

.links-row a:first-child {
    margin-right: 30px;
}

.links-row a {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s;
}

.links-row a:hover {
    text-decoration: underline;
    color: #357ABD;
}

.footer {
    text-align: center;
    margin-top: -15px;
    font-size: 13px;
    color: var(--muted);
}

.footer a {
    text-decoration: none;
    color: var(--link-color);
}

.footer a:hover {
    text-decoration: underline;
}

.browser-note {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width:400px) {
    .container {
        width: 90%;
        padding: 28px;
    }
    .message-container {
        width: 90%;
    }
}

/********************** Forget password ********************************/

.forgot-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forgot-container {
    background: var(--white);
    width: 400px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    overflow: hidden;
}

.forgot-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.forgot-body {
    padding: 30px;
}

.forgot-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cancel-btn {
    flex: 1;
    padding: 10px;
    background: var(--muted);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #444;
    transform: scale(1.02);
}

.forgot-note {
    margin-top: 15px;
    padding: 10px;
    background: #FFF3E0;
    border-radius: 8px;
    border: 1px solid #FFE0B2;
}

.forgot-note small {
    color: var(--warning);
    font-size: 11px;
    line-height: 1.4;
}

.forgot-link {
    cursor: pointer;
    width:200px;
}

/* Responsive design for forgot panel */
@media (max-width: 500px) {
    .forgot-container {
        width: 90%;
        margin: 20px;
    }
    
    .forgot-buttons {
        flex-direction: column;
    }
}

/* Link-style Button */
.link-style-button {
    background: none !important;
    border: none !important;
    color: var(--link-color) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
     font-family: 'Lucida Sans', sans-serif !important;
    display: inline !important;
    text-align: left !important;
    margin-left:10px !important;
}

.link-style-button:hover {
    text-decoration: underline !important;
    color: #357ABD !important;
    background: none !important;
    border: none !important;
}

/* Ensure the links row layout stays the same */
.links-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
    font-size: 13px;
}

.links-row .forgot-link {
    margin-right: 30px;
}

.links-row .forgot-link,
.links-row .link-style-button {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s;
}

.links-row .forgot-link:hover,
.links-row .link-style-button:hover {
    text-decoration: underline;
    color: #357ABD;
}


.login-btn {
    width: 100%;
    padding: 10px;
    background: #2D4671 !important;
    border: none !important;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    outline: none;
    box-shadow: none;
    transition: all 0.2s ease;
}

/* Hover */
.login-btn:hover {
    background: #2D4671 !important;
}

/* Active */
.login-btn:active {
    transform: scale(0.97);
    background: #2D4671 !important;
}

/* Focus (THIS IS THE IMPORTANT ONE) */
.login-btn:focus {
    outline: none !important;
    background: #2D4671 !important;
}

/* Extra force for input type submit */
input[type="submit"].login-btn {
    background-color: transparent;
}


.contact-info{
    text-align:center;
    font-size:12px;
    color:#555;
    margin-top:10px;
    line-height:1.5;
}

.contact-info span{
    color:#2D4671;
    font-weight:600;
}

.company-tagline{
    text-align:center;
    font-size:11px;
    color:#6b7280;
    margin-top:6px;
    line-height:1.4;
    max-width:360px;
}

.company-tagline strong{
    color:#2D4671;
    font-size:12px;
}