﻿/* Dark Theme Variables (default) */
body[data-theme="dark"] {
    --primary: #5e72e4;
    --primary-dark: #4a5bd1;
    --secondary: #8c98c6;
    --dark: #0f131a;
    --darker: #090b0f;
    --light: #e6e9f2;
    --lighter: #f5f7ff;
    --gray: #1e222d;
    --input-bg: #1a1e28;
    --success: #2dce89;
    --warning: #fb6340;
}

/* Light Theme Variables */
body[data-theme="light"] {
    --primary: #5e72e4;
    --primary-dark: #4a5bd1;
    --secondary: #4a4f5c;
    --dark: #ffffff;
    --darker: #f7f8fc;
    --light: #1e222d;
    --lighter: #0f131a;
    --gray: #cfd4e0;
    --input-bg: #f0f2f7;
    --success: #2dce89;
    --warning: #fb6340;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    color: var(--light);
    background: var(--darker);
    overflow: hidden;
}

a, a:visited {
    color: var(--primary); /* Makes both visited and unvisited links use your primary color */
    text-decoration: none;
}

    a:hover {
        color: var(--lighter);
        text-decoration: underline;
    }

.mobile-title {
    position: absolute;
    width: 100%;
    bottom: 0;
    justify-content: center;
    display:none;
}

.hero-section {
    flex: 1;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.6)), url('/images/auth-background.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), #8a9eff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary);
}

.login-container {
    width: 450px;
    background: var(--dark);
    padding: 80px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    margin-bottom: 40px;
    text-align:center;
}

    .logo h1 {
        font-size: 24px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 8px;
    }

    .logo p {
        color: var(--secondary);
        font-size: 14px;
    }

.input-group {
    margin-bottom: 20px;
    position: relative;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
        color: var(--light);
    }

    .input-group input {
        width: 100%;
        padding: 14px 15px;
        background: var(--input-bg);
        border: 1px solid #2a3142;
        border-radius: 8px;
        color: var(--lighter);
        font-size: 15px;
        transition: all 0.3s ease;
    }

        .input-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.2);
        }

        .input-group input::placeholder {
            color: #5a6478;
        }

.options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
}

    .remember-me input {
        margin-right: 8px;
        accent-color: var(--primary);
    }

    .remember-me label {
        color: var(--secondary);
    }

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}

    .forgot-password:hover {
        color: var(--lighter);
        text-decoration: underline;
    }

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    transition: all 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(94, 114, 228, 0.4);
    }

    .btn-primary:disabled,
    .btn-primary[disabled] {
        background: #4a5bd180; /* primary-dark with 50% opacity */
        color: #e6e9f280; /* light with 50% opacity */
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

    .btn-secondary:hover {
        background: rgba(94, 114, 228, 0.1);
    }

    .btn-secondary:disabled,
    .btn-secondary[disabled] {
        color: #5e72e480; /* primary with 50% opacity */
        border-color: #5e72e480; /* primary with 50% opacity */
        cursor: not-allowed;
        background: transparent;
        transform: none !important;
    }

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--secondary);
    font-size: 12px;
}

    .divider::before, .divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 40%;
        height: 1px;
        background: var(--gray);
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

.password-toggle {
    position: absolute;
    right: 15px;
    top: 35px;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.3);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .password-toggle:hover {
        color: var(--light);
        background: rgba(0, 0, 0, 0.5);
    }

.instructions {
    color: var(--secondary);
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--secondary);
}

/* Cookie Consent Styles */
#cookieConsentBanner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: var(--dark);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gray);
    overflow: hidden;
    z-index: 1000;
}

    #cookieConsentBanner .card-header {
        padding: 18px 20px;
        background: var(--input-bg);
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--gray);
    }

        #cookieConsentBanner .card-header i {
            font-size: 20px;
            margin-right: 12px;
            color: var(--primary);
        }

        #cookieConsentBanner .card-header h2 {
            font-size: 16px;
            font-weight: 600;
            color: var(--light);
        }

    #cookieConsentBanner .card-body {
        padding: 20px;
    }

        #cookieConsentBanner .card-body p {
            font-size: 14px;
            line-height: 1.5;
            color: var(--secondary);
        }

    #cookieConsentBanner .card-footer {
        padding: 15px 20px;
        background: var(--input-bg);
        border-top: 1px solid var(--gray);
    }

    #cookieConsentBanner .btn-success {
        background: var(--success);
        color: white;
    }

    #cookieConsentBanner .btn-warning {
        background: var(--warning);
        color: white;
    }

    #cookieConsentBanner .button {
        padding: 12px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        #cookieConsentBanner .button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

.text-danger.validation-summary-errors {
    color: var(--warning);
    font-size: 14px;
}
    .text-danger.validation-summary-errors li {
        list-style: none;
    }
        .text-danger.validation-summary-errors li:last-child {
           margin-bottom:1rem;
        }

.tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

    .tooltip:after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

input[type="password"]:focus + .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.tooltip li {
    margin-bottom: 3px;
}
.d-none{
    display:none;
}
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .mobile-title{
        display:inherit;
    }

    .hero-section {
        display: none;
    }

    .login-container {
        width: 100%;
        height: 100vh;
        padding: 40px 30px;
        border-left: none;
    }

    #cookieConsentBanner {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}
