﻿body, html {
    height: 100%;
    margin: 0;
    background: #161C2D;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    margin-bottom: 24px;
    text-align: center;
}

    .logo img {
        width: 300px;
        max-width: 95vw;
        margin-bottom: 8px;
    }

.logo-title {
    color: #0476D0;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-subtitle {
    color: #EDFAFD;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.login-box {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 32px 32px 16px 32px;
    min-width: 340px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.login-label {
    color: #090C02;
    font-size: 0.95rem;
    margin-bottom: 6px;
    margin-top: 12px;
}

.login-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.login-input {
    border: 1px solid #EDFAFD;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.95rem;
    margin-bottom: 8px;
    background: #EDFAFD;
    color: #161C2D;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

    .login-input:focus {
        border-color: #0476D0;
        background: #FFFFFF;
    }

.toggle-password {
    position: absolute;
    right: 12px;
    top: 45%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0476D0;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
}

.login-btn {
    background: #0476D0;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
}

    .login-btn:hover:not(.loading) {
        background: #EDFAFD;
        color: #0476D0;
    }

    .login-btn.loading {
        background: #0056b3;
        cursor: not-allowed;
        pointer-events: none;
    }

        .login-btn.loading .btn-text {
            opacity: 0;
        }

    .login-btn .loading-spinner {
        display: none;
        position: absolute;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid #FFFFFF;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .login-btn.loading .loading-spinner {
        display: block;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.forgot-link {
    margin-top: 16px;
    text-align: left;
    font-size: 0.95rem;
}

    .forgot-link a {
        color: #0476D0;
        text-decoration: none;
        transition: color 0.2s;
    }

        .forgot-link a:hover {
            color: #161C2D;
            text-decoration: underline;
        }
