﻿: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);
    --gradient-bg: linear-gradient(135deg, #0a1929 0%, #0d2538 30%, #143448 100%);
    --card-gradient: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--gradient-bg);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

#main-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Animated Background Elements */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(58, 118, 122, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 118, 122, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    opacity: 0.5;
    animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(50px) translateX(50px);
    }
}

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -150px;
    right: -100px;
    animation: float 25s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -100px;
    left: -50px;
    animation: float 30s infinite ease-in-out reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--tertiary);
    top: 50%;
    left: 70%;
    animation: float 35s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Login Wrapper */
#loginWrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.login-left {
    padding-right: 60px;
}

/* Brand Header */
.brand-header {
    margin-bottom: 60px;
}

    .brand-header h1 {
        font-size: 4rem;
        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;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .brand-header .tm {
        font-size: 1.2rem;
        vertical-align: super;
        color: var(--secondary) !important;
        -webkit-text-fill-color: var(--secondary);
    }

.brand-tagline {
    font-size: 1.3rem;
    color: #b0e0e6;
    font-weight: 300;
    line-height: 1.6;
    max-width: 500px;
}

/* Features List */
.features-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

    .feature-item:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(58, 118, 122, 0.2);
        transform: translateX(10px);
    }

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
}

.feature-item:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-600) 100%);
}

.feature-item:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--tertiary) 0%, var(--tertiary-600) 100%);
}

.feature-text h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-text p {
    color: #a0b3c6;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Login Card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
        z-index: -1;
        border-radius: 24px;
    }

.login-icon {
    text-align: center;
    margin-bottom: 30px;
}

    .login-icon img {
        height: 80px;
        filter: brightness(1.2);
    }

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

    .login-header h2 {
        color: white;
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 10px;
        background: linear-gradient(135deg, #fff 0%, #b0e0e6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .login-header p {
        color: #a0b3c6;
        font-size: 1rem;
    }

/* Form Elements */
#loginForm {
    margin-top: 10px;
}

.input-group {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .input-group:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(58, 118, 122, 0.2);
    }

.input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 0 20px;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    padding: 15px 20px;
    height: auto;
}

    .form-control::placeholder {
        color: #8fa3b0;
    }

    .form-control:focus {
        background: rgba(255, 255, 255, 0.08);
        color: white;
        box-shadow: none;
        border: none;
    }

.form-check {
    margin-bottom: 20px;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

    .form-check-input:checked {
        background-color: var(--secondary);
        border-color: var(--secondary);
    }

.form-check-label {
    color: #a0b3c6;
    margin-left: 8px;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

    a:hover {
        color: var(--secondary-600);
        text-decoration: underline;
    }

/* Buttons */
.btn-login, .btn-signup {
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-login {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-600) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

    .btn-login:hover {
        background: linear-gradient(135deg, var(--secondary-600) 0%, #268851 100%);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(63, 172, 114, 0.3);
    }

.btn-signup {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

    .btn-signup:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
    }

/* Modal Styling */
.modal-content {
    background: rgba(20, 30, 48, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: white;
    font-weight: 600;
}

.btn-close {
    filter: invert(1) brightness(2);
}

/* Footer Text */
.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.text-muted {
    color: #8fa3b0 !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .login-left {
        padding-right: 30px;
    }

    .brand-header h1 {
        font-size: 3.2rem;
    }

    .brand-tagline {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .login-left {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .brand-header h1 {
        font-size: 2.8rem;
    }

    .login-card {
        padding: 30px 25px;
    }
}

@media (max-width: 576px) {
    .brand-header h1 {
        font-size: 2.4rem;
    }

    .login-header h2 {
        font-size: 1.8rem;
    }

    .login-card {
        padding: 25px 20px;
    }

    .btn-login, .btn-signup {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

/* Spinner */
.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
}

/* Password toggle */
#passwordToggle {
    cursor: pointer;
    color: var(--primary);
}

    #passwordToggle:hover {
        color: var(--primary-600);
    }
