/* ===================================
   GridSide - Carbon & Crimson Theme
   Password Reset Page Styles
   =================================== */

:root {
    --f1-red: #E10600;
    --matte-black: #0F0F0F;
    --dark-gray: #1A1A1A;
    --medium-gray: #2A2A2A;
    --light-gray: #8A8A8A;
    --white: #FFFFFF;
    --error-red: #FF4444;
    --success-green: #00C853;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--matte-black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-block;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.app-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--white) 0%, var(--f1-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--light-gray);
    font-size: 14px;
    font-style: italic;
}

/* Form Container */
.form-container,
.success-container,
.error-container {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: translateY(-2px);
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.subtitle {
    color: var(--light-gray);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--white);
}

input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--matte-black);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

input[type="password"]:focus {
    border-color: var(--f1-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}

input[type="password"]::placeholder {
    color: var(--light-gray);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.btn-primary {
    background: var(--f1-red);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: #C10500;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--medium-gray);
}

.btn-secondary:hover {
    background: var(--medium-gray);
    border-color: var(--f1-red);
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Message */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error-red);
    color: var(--error-red);
}

.message.success {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid var(--success-green);
    color: var(--success-green);
}

/* Success/Error Icons */
.success-container,
.error-container {
    text-align: center;
}

.success-icon,
.error-icon {
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

footer p {
    color: var(--light-gray);
    font-size: 12px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .form-container,
    .success-container,
    .error-container {
        padding: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .app-name {
        font-size: 28px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 2px;
}
