﻿/* Variables */
:root {
    --primary-color: #007bff;
    --hover-color: #0056b3;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

/* Global Styles */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Login Box Container */
.login-box {
    max-width: 450px;
    width: 100%;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Logo Section */
.login-logo {
    padding: 25px 20px;
    text-align: center;
    background: rgba(0, 123, 255, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .login-logo img {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
        transition: transform 0.3s ease;
    }

        .login-logo img:hover {
            transform: scale(1.05);
        }

    .login-logo a {
        color: #333;
        font-size: 24px;
        text-decoration: none;
        font-weight: 600;
    }

/* Card Styles */
.card {
    border: none;
    margin: 0;
}

.card-body {
    padding: 30px;
}

.login-box-msg {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Form Controls */
.form-control {
    height: 45px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding-left: 15px;
    transition: all 0.2s;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    }

.input-group-text {
    background-color: transparent;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #666;
}

/* Button Styles */
.btn {
    height: 45px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    width: 100%;
    margin-bottom: 10px;
}

    .btn-primary:hover {
        background-color: var(--hover-color);
        transform: translateY(-1px);
    }

.btn-outline-secondary {
    border: 1px solid #ddd;
    color: #666;
    background: transparent;
    width: 100%;
}

    .btn-outline-secondary:hover {
        background: #f8f9fa;
        border-color: #ddd;
        color: #333;
    }

/* Alert Styles */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navigation Links */
.back-to-login {
    text-align: center;
    margin-top: 20px;
}

    .back-to-login a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }

        .back-to-login a:hover {
            text-decoration: underline;
        }

/* Password Requirements */
.password-requirements {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

    .password-requirements ul {
        margin: 0;
        padding-left: 20px;
    }

    .password-requirements li {
        color: #666;
        margin: 5px 0;
    }

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

    .loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin: -10px 0 0 -10px;
        border: 3px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
    }

/* Expired State */
.expired-icon {
    font-size: 48px;
    color: var(--danger-color);
    margin-bottom: 20px;
    animation: fadeInDown 0.5s ease;
}

.expired-message {
    color: #666;
    text-align: center;
    margin: 20px 0;
    line-height: 1.6;
}

.expired-title {
    color: var(--danger-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    animation: fadeIn 0.5s ease;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 576px) {
    .login-box {
        margin: 10px;
    }

    .card-body {
        padding: 20px;
    }
}