/* Basic styles - will be enhanced later */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #F1F5F9;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #334155;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

header h1 {
    color: #D97706;
    font-size: 28px;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #D97706;
}

main {
    padding: 40px 0;
}

.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 30px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #CBD5E1;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background-color: #000000;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    height: 80px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #D97706;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #CBD5E1;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: #000;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #F1F5F9;
    font-size: 16px;
}

.form-group select {
    width: 100%;
    padding: 12px;
    background-color: #000;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #F1F5F9;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #D97706 50%),
        linear-gradient(135deg, #D97706 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.form-group input:focus {
    outline: none;
    border-color: #D97706;
}

.form-group select:focus {
    outline: none;
    border-color: #D97706;
}

.form-group input:read-only {
    background-color: #1a1a1a !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #1a1a1a;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #D97706;
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background-color: #B45309;
}

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

.btn-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary {
    background-color: transparent;
    color: #D97706;
    border: 1px solid #D97706;
}

.btn-secondary:hover {
    background-color: #D97706;
    color: white;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #CBD5E1;
}

.auth-link a {
    color: #D97706;
    text-decoration: none;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.message.success {
    background-color: #10B981;
    color: white;
    display: block;
}

.message.error {
    background-color: #EF4444;
    color: white;
    display: block;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #94A3B8;
    border-top: 1px solid #334155;
    margin-top: 60px;
}

/* Spinner styles */
.spinner {
    display: inline-block;
}

.spinner-circle {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Loading message */
.loading-message {
    margin-top: 12px;
    text-align: center;
    color: #D97706;
    font-size: 14px;
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #1a1a1a;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .container {
        padding: 12px;
    }

    header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
    }

    .logo {
        height: 32px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    nav a {
        font-size: 14px;
        padding: 8px 12px;
    }

    main {
        padding: 20px 0;
    }

    .hero {
        padding: 40px 12px;
    }

    .hero-logo {
        height: 80px;
        margin-bottom: 20px;
    }

    .hero h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .auth-section {
        min-height: auto;
        padding: 20px 0;
    }

    .auth-card {
        padding: 24px 20px;
        margin: 0 12px;
        max-width: 100%;
    }

    .auth-logo {
        height: 60px;
        margin-bottom: 16px;
    }

    .auth-card h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .auth-link {
        font-size: 14px;
        margin-top: 16px;
    }

    footer {
        padding: 30px 0;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }

    header {
        padding: 12px 0;
    }

    .logo {
        height: 28px;
    }

    nav {
        gap: 8px;
    }

    nav a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .hero {
        padding: 30px 8px;
    }

    .hero-logo {
        height: 70px;
        margin-bottom: 16px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .auth-card {
        padding: 20px 16px;
        margin: 0 8px;
        border-radius: 8px;
    }

    .auth-logo {
        height: 50px;
        margin-bottom: 12px;
    }

    .auth-card h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .form-group input {
        padding: 12px;
    }
}

