/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #1a1a1a, #000000);
    min-height: 100vh;
    color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background-color: #1a1a1a;
    box-shadow: 0 4px 6px rgba(255, 0, 0, 0.1);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 50px;
    display: block;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.75rem;
    color: #ffffff;
}

/* Main Content */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

/* Toggle Buttons */
.auth-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #999999;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
}

.toggle-btn:hover:not(.active) {
    color: #ffffff;
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.3s;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    color: #999999;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: #ff0000;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #ff0000;
}

input::placeholder {
    color: #666666;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.strength-bar.weak::after {
    width: 33%;
    background: #ff0000;
}

.strength-bar.medium::after {
    width: 66%;
    background: #ffa500;
}

.strength-bar.strong::after {
    width: 100%;
    background: #25f704;
}

.strength-text {
    font-size: 0.85rem;
    color: #999999;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff0000;
}

.checkbox-label span {
    color: #cccccc;
}

.checkbox-label a {
    color: #ff4444;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: #ff4444;
    text-decoration: none;
    font-size: 0.95rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #666666;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 68, 68, 0.2);
}

.form-divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff4444;
}

.btn-google::before {
    content: 'G';
    width: 20px;
    height: 20px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.btn-facebook::before {
    content: 'f';
    width: 20px;
    height: 20px;
    background: #1877f2;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 2rem 0;
    border-top: 2px solid #ff0000;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text {
    color: #999999;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
    }

    .auth-form h2 {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .auth-main {
        padding: 20px 10px;
    }

    .auth-container {
        padding: 20px 15px;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }
}