﻿:root {
    --primary: #3A767A;
    --primary-600: #2f6164;
    --primary-700: #254a4d;
    --primary-light: rgba(58,118,122,.10);
    --secondary: #3FAC72;
    --secondary-600: #2f945f;
    --secondary-light: rgba(63,172,114,.10);
    --tertiary: #E04852;
    --tertiary-600: #c63f48;
    --tertiary-light: rgba(224,72,82,.10);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --text-primary: #f0f9fa;
    --text-secondary: #b0e0e6;
    --surface: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #0a1929;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

#main-container {
    background: radial-gradient(circle at 20% 30%, rgba(58,118,122,0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(63,172,114,0.1) 0%, transparent 50%), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #main-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(10, 25, 41, 0.92) 0%, rgba(37, 74, 77, 0.88) 100%);
        z-index: 0;
    }

#loginWrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

.login-side-info {
    padding-right: 60px;
}

/* Company-specific styles */
.company-badge .badge {
    background: rgba(63, 172, 114, 0.15);
    color: var(--secondary);
    font-weight: 500;
    border: 1px solid rgba(63, 172, 114, 0.3);
}

.company-stats {
    margin: 30px 0;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-badge {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .brand-logo h1 {
        font-size: 2.8rem;
        font-weight: 800;
        background: linear-gradient(135deg, #fff 0%, #a3d9e3 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -1px;
        margin-bottom: 0;
        line-height: 1;
    }

    .brand-logo .tm {
        font-size: 0.8rem;
        vertical-align: super;
        color: var(--secondary) !important;
        -webkit-text-fill-color: var(--secondary);
    }

.welcome-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

    .features-list li {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        color: var(--text-secondary);
        font-size: 1rem;
    }

    .features-list i {
        color: var(--secondary);
        margin-right: 15px;
        font-size: 1.2rem;
        background: rgba(63,172,114,0.15);
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Login Card Styles */
.login-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
        z-index: 2;
    }

    .login-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 80%, rgba(58,118,122,0.05) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(63,172,114,0.05) 0%, transparent 50%);
        z-index: -1;
        border-radius: 24px;
    }

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(58,118,122,0.3);
    padding: 20px;
}

    .login-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Styles */
.form-group-custom {
    margin-bottom: 28px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 15px;
    transition: all 0.3s ease;
}

    .input-group-custom:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(58,118,122,0.2);
        background: rgba(255, 255, 255, 0.08);
    }

.input-icon {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.form-control-custom {
    background: transparent;
    border: none;
    color: white;
    padding: 16px 0;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

    .form-control-custom::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .form-control-custom:focus {
        box-shadow: none;
    }

.checkbox-custom {
    display: flex;
    align-items: center;
}

    .checkbox-custom input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 10px;
        accent-color: var(--primary);
        cursor: pointer;
    }

    .checkbox-custom label {
        color: var(--text-secondary);
        cursor: pointer;
        font-size: 0.95rem;
    }

.forgot-password {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: var(--secondary-600);
        text-decoration: underline;
    }

/* Button Styles */
.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    border: none;
    color: white;
    padding: 18px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
        transition: left 0.4s ease;
        z-index: -1;
    }

    .btn-login:hover::before {
        left: 0;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(58,118,122,0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

    .login-footer a {
        color: var(--secondary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .login-footer a:hover {
            color: var(--secondary-600);
            text-decoration: underline;
        }

/* Tech Elements */
.floating-element {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,118,122,0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.floating-element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 10%;
    background: radial-gradient(circle, rgba(63,172,114,0.08) 0%, transparent 70%);
    animation-delay: 5s;
}

.floating-element-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    background: radial-gradient(circle, rgba(224,72,82,0.05) 0%, transparent 70%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(120deg);
    }

    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .welcome-title {
        font-size: 2.4rem;
    }

    .login-side-info {
        padding-right: 40px;
    }
}

@media (max-width: 992px) {
    .login-side-info {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }

    .brand-logo {
        justify-content: center;
    }

    .company-stats {
        justify-content: center;
    }

    .stat-item {
        text-align: center;
    }

    .features-list {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

        .features-list li {
            justify-content: center;
        }

    .trust-badge {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 40px 25px;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .company-stats {
        flex-direction: column;
        gap: 15px !important;
    }

    .floating-element {
        display: none;
    }
}

.login-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px 24px;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #007bff;
}

    .login-status.verifying {
        border-left-color: #ffc107;
    }

    .login-status.success {
        border-left-color: #28a745;
    }

    .login-status .spinner-small {
        width: 20px;
        height: 20px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-status i {
    font-size: 20px;
}

.login-status.verifying i {
    color: #ffc107;
}

.login-status.success i {
    color: #28a745;
}

/* manager chip — subtle, premium */
.manager-chip {
    background: var(--surface);
    border-radius: 100px;
    padding: 0.6rem 1.8rem 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    font-size: 1rem;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    gap: 0.4rem;
}

    .manager-chip i {
        color: var(--primary);
        font-size: 1.5rem;
        margin-right: 6px;
    }

.bg-primary-soft {
    background-color: var(--primary-light);
}

/* Additional styles for status messages */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    color: black;
    border-radius: 5px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #4CAF50;
}

.toast-error {
    background: #f44336;
}

.toast-info {
    background: #2196F3;
}

.toast-warning {
    background: #ff9800;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

