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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1428 0%, #1a3a5f 50%, #1a73e8 100%);
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(26,115,232,0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(100,180,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    position: relative;
    z-index: 1;
}

.auth-card {
    position: relative;
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.auth-bg-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-logo-placeholder svg {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
}

.auth-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 20px;
}

.auth-header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-top: 4px;
}

.auth-form {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.auth-form .form-group {
    margin-bottom: 10px;
}

.auth-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: all 0.2s;
    color: #1f2937;
}

.auth-form input::placeholder {
    color: #9ca3af;
}

.auth-form input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.form-error {
    color: #dc2626;
    font-size: 12px;
    margin-bottom: 8px;
    min-height: 16px;
    background: #fef2f2;
    border-radius: 6px;
    padding: 6px 10px;
    display: none;
}

.form-error:not(:empty) {
    display: block;
}

.auth-submit-wrap {
    margin-top: auto;
    padding-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,115,232,0.3);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #6b7280; color: #fff; }
.btn-secondary:hover { background: #4b5563; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }

.auth-link {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #6b7280;
}

.auth-link a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-container { padding: 12px; }
    .auth-card { min-height: 480px; border-radius: 14px; }
    .auth-content { padding: 20px 22px 16px; }
}