﻿: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.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #0a1929;
    color: #e0e0e0;
    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-1552664730-d307ca884978?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;
    max-width: 1200px;
    width: 100%;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 85vh;
}

.brand-section {
    padding-right: 40px;
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.brand-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--tertiary) 0%, var(--tertiary-600) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(224,72,82,0.3);
}

.brand-text 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: -0.5px;
    line-height: 1;
    margin-bottom: 5px;
}

.brand-text .tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    font-weight: 300;
}

.welcome-message {
    margin-top: 40px;
}

    .welcome-message h2 {
        font-size: 2.2rem;
        font-weight: 700;
        color: white;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .welcome-message p {
        font-size: 1.1rem;
        color: var(--text-muted);
        line-height: 1.6;
        margin-bottom: 30px;
        max-width: 500px;
    }

.features-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--secondary-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 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;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--tertiary) 0%, var(--primary) 50%, var(--secondary) 100%);
    }

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--tertiary-light) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--tertiary);
    border: 1px solid rgba(224,72,82,0.3);
}

.login-header h3 {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Form Styles */
.input-group-custom {
    margin-bottom: 25px;
}

.input-group-prepend-custom {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .input-group-prepend-custom .input-group-text {
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 1.1rem;
        padding: 0;
    }

.form-control-custom {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: white;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control-custom:focus {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(58,118,122,0.2);
        color: white;
        outline: none;
    }

    .form-control-custom::placeholder {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.95rem;
    }

/* Remember Me & Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.form-check-custom {
    display: flex;
    align-items: center;
}

.form-check-input-custom {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
}

    .form-check-input-custom:checked {
        background: var(--primary);
        border-color: var(--primary);
    }

        .form-check-input-custom:checked::after {
            content: '✓';
            position: absolute;
            color: white;
            font-size: 0.8rem;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

.form-check-label-custom {
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
}

.forgot-password-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

    .forgot-password-link:hover {
        color: var(--secondary-600);
        text-decoration: underline;
    }

/* Login Button */
.login-btn-container {
    margin-top: 10px;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    border: none;
    color: white;
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn-login:hover {
        background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(58,118,122,0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: left 0.7s ease;
    }

    .btn-login:hover::after {
        left: 100%;
    }

/* Spinner */
.spinner-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.d-none {
    display: none !important;
}

/* Footer Links */
.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .login-footer a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s ease;
    }

        .login-footer a:hover {
            color: var(--secondary);
        }

/* Background Tech Elements */
.floating-element {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
}

.floating-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--tertiary-light) 0%, transparent 70%);
    top: 10%;
    left: 5%;
}

.floating-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    bottom: 15%;
    right: 10%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .brand-section {
        padding-right: 0;
        text-align: center;
    }

    .brand-logo {
        justify-content: center;
    }

    .welcome-message h2 {
        font-size: 1.8rem;
    }

    .features-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 40px 25px;
    }

    .brand-text h1 {
        font-size: 2.2rem;
    }

    .welcome-message h2 {
        font-size: 1.6rem;
    }

    .login-header h3 {
        font-size: 1.5rem;
    }
}
