@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap");

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: radial-gradient(ellipse at 20% 0%, #1a1408, #050403 55%);
    color: #f5efe0;
    font-family: "Manrope", sans-serif;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
    overflow: hidden;
}

.auth-glow {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224,184,74,0.14), transparent 65%);
    filter: blur(24px);
    pointer-events: none;
    animation: glowFloat 12s ease-in-out infinite;
}
@keyframes glowFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-30px, 24px) scale(1.1); }
}

.auth-back {
    position: absolute;
    top: 32px;
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #a89b7d;
    transition: color 0.3s ease, transform 0.3s ease;
}
.auth-back:hover {
    color: #e0b84a;
    transform: translateX(-4px);
}

.auth-card {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    background: linear-gradient(160deg, rgba(224,184,74,0.05), rgba(0,0,0,0.3));
    border: 1px solid rgba(224,184,74,0.14);
    padding: 44px 38px;
    opacity: 0;
    transform: translateY(24px);
    animation: cardRise 0.8s cubic-bezier(.16,1,.3,1) 0.15s forwards;
}
@keyframes cardRise {
    to { opacity: 1; transform: translateY(0); }
}

.auth-logo {
    display: block;
    width: 130px;
    margin-bottom: 30px;
}
.auth-logo img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.auth-label {
    display: block;
    margin-bottom: 16px;
    color: #e0b84a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.auth-card h1 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.auth-lead {
    color: #a89b7d;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    color: #a89b7d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.form-group input {
    background: #050403;
    border: 1px solid rgba(224,184,74,0.14);
    padding: 14px 16px;
    color: #f5efe0;
    outline: none;
    font-size: 15px;
    transition: border-color 0.3s ease;
}
.form-group input:focus {
    border-color: #e0b84a;
}

.password-field input {
    padding-right: 80px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 38px;
    border: none;
    background: transparent;
    color: #e0b84a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.auth-message {
    min-height: 20px;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.6;
}
.auth-message.error { color: #ff7272; }
.auth-message.success { color: #7ee0a8; }

.auth-button {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    background: linear-gradient(120deg, #c9962f, #e0b84a);
    color: #050403;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 15px 40px rgba(224,184,74,0.15);
}
.auth-button:hover { transform: translateY(-2px); }
.auth-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-button .button-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}
.auth-button:hover .button-arrow { transform: translateX(4px); }

.auth-footer-link {
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
    color: #a89b7d;
}
.auth-footer-link a {
    color: #e0b84a;
    font-weight: 700;
}
.auth-footer-link a:hover { color: #f5efe0; }

@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
    .auth-back { top: 20px; left: 20px; }
}