* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: url('/public/img/bg-desktop.jpeg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

.auth-container {
    position: absolute;
    top: 2cm;
    left: 2cm;
    width: 320px;
}

.auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.auth-tab {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.auth-tab.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 14px 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid #d4af37;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #f0cc4a;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5), 0 0 25px rgba(212, 175, 55, 0.2);
}

.form-group input:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.12);
    border-color: #f0cc4a;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(180deg, #f0cc4a 0%, #b8960f 50%, #8a7009 100%);
    border: 2px solid #d4af37;
    border-radius: 25px;
    color: #0a0a1e;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:hover {
    background: linear-gradient(180deg, #f5d75a 0%, #c9a520 50%, #a08010 100%);
    border-color: #f0cc4a;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.form-message {
    display: none;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    padding: 24px 32px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    max-width: 380px;
    width: 90%;
}

.modal-box.success {
    background: rgba(10, 10, 30, 0.95);
    border: 2px solid #4caf50;
    color: #4caf50;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.3);
}

.modal-box.error {
    background: rgba(10, 10, 30, 0.95);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.3);
}

@media (max-width: 600px) {
    .auth-container {
        position: absolute;
        top: 1cm;
        left: 1cm;
        right: 1cm;
        width: auto;
        max-width: 320px;
    }
}