﻿.login-page {
    min-height: calc(100vh - 53px - 50px - 32px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9fafb;
    padding: 16px;
}

.login-box {
    width: 100%;
    /*    max-width: 900px;*/
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 48px;
    padding: 2rem;
    /*    padding: 48px;*/
}

.login-header {
    flex: 1;
}

.login-logo {
    height: 72px;
    /*    margin-bottom: 24px;*/
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
}

.login-subtitle {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
    max-width: 360px;
}

.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    align-items: end;
}

.begin-form {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
}

.form-control {
    width: 100%;
    padding: 12px 0px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-indent: 10px;
}

    .form-control:focus {
        outline: none;
        border-color: #3b82f6;
    }

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.forgot-password {
    color: #2563eb;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

    .btn-primary:hover {
        background: #2563eb;
    }

.signup-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    text-decoration: none;
}

@media (max-width: 768px) {

    .login-box {
        flex-direction: column;
        gap: 32px;
        padding: 32px 24px;
    }

    .login-subtitle {
        max-width: 100%;
    }

    .begin-form {
        max-width: 100%;
    }
}

.btn-submit {
    position: relative;
}

.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

label {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

.register-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 8px 8px;
    animation: fadeInUp 0.4s ease;
}

    .register-success .success-icon {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #eafbf1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

        .register-success .success-icon svg {
            width: 26px;
            height: 26px;
            stroke: #2fb872;
        }

    .register-success .success-text {
        font-size: 15px;
        line-height: 1.6;
        color: #444;
        max-width: 320px;
        margin: 0 0 24px;
    }

    .register-success .login-options {
        margin-top: 4px;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 360px;
    width: 100%;
    box-sizing: border-box;
}

    .info-banner svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

.info-banner-success {
    background: #eafbf1;
    color: #1f8a52;
}

    .info-banner-success svg {
        stroke: #2fb872;
    }

.info-banner-error {
    background: #fdeeee;
    color: #b3261e;
}

    .info-banner-error svg {
        stroke: #d93025;
    }