﻿/* Login Page Styles */
.login-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    background-image: url('/images/bg-grey-blue-turbines.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .login-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logo-container {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 120px;
    height: auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.login-header p {
    margin-top: 0.5rem;
    margin-bottom: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.login-features {
    margin-top: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.feature-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 2px;
    transition: all 0.2s ease;
    cursor: default;
}

    .feature-badge:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }

.login-body-content {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

    .form-control:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.2rem rgba(46, 134, 193, 0.25);
        outline: none;
    }

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

    .password-toggle:hover {
        color: var(--primary-blue);
    }

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
}

.btn-primary {
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    color: white;
    cursor: pointer;
}

    .btn-primary:hover {
        background: var(--dark-blue);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        background: var(--medium-gray);
        cursor: not-allowed;
        transform: none;
    }

    .btn-primary.pulse {
        animation: pulse 0.2s ease-in-out;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.login-footer {
    background: var(--light-gray);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.footer-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
}

    .stat-item i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
    transition: opacity 0.3s ease;
    position: relative;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-red);
}

.alert .btn-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

    .alert .btn-close:hover {
        opacity: 1;
    }

.login-help {
    text-align: center;
    margin-top: 1rem;
}

    .login-help small {
        color: var(--medium-gray);
    }

.security-notice {
    text-align: center;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.1em;
}

.spinner-border {
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Background animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(46, 134, 193, 0.1) 0%, transparent 70%);
    animation: wave 20s infinite linear;
}

.wave1 {
    animation-duration: 20s;
    top: -50%;
    left: -50%;
}

.wave2 {
    animation-duration: 25s;
    top: -60%;
    left: -60%;
    animation-direction: reverse;
}

.wave3 {
    animation-duration: 30s;
    top: -70%;
    left: -70%;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .login-header,
    .login-body-content {
        padding: 1.5rem;
    }

    .footer-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-badge {
        display: block;
        margin: 4px auto;
        width: fit-content;
    }

    .login-logo {
        width: 100px;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 10px;
        font-size: 1rem;
    }
}
