/* Authentication Pages Styles */

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
}

.auth-forms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
    width: 100%;
    padding: 3rem 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6B7280;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background: white;
}

.form-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

.form-input:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.checkbox-text {
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-hint {
    color: #6B7280;
    font-size: 0.85rem;
    margin-top: -0.25rem;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-auth.btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-auth.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

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

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* GitHub Button Styles */
.btn-github {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #24292e;
    background-color: #24292e;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-github:hover {
    background-color: #2c3137;
    border-color: #2c3137;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 41, 46, 0.3);
}

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

.btn-github:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.github-icon {
    width: 24px;
    height: 24px;
}

/* Auth Info Section */
.auth-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #F3F4F6;
    border-radius: 8px;
    border-left: 4px solid var(--primary-purple);
}

.auth-info-text {
    margin: 0;
    color: #4B5563;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-purple);
}

.error-message {
    padding: 0.875rem 1rem;
    background-color: #FEE2E2;
    border: 1px solid #EF4444;
    border-radius: 8px;
    color: #DC2626;
    font-size: 0.95rem;
    text-align: center;
}

.success-message {
    padding: 0.875rem 1rem;
    background-color: #D1FAE5;
    border: 1px solid #10B981;
    border-radius: 8px;
    color: #059669;
    font-size: 0.95rem;
    text-align: center;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-footer-text {
    color: #6B7280;
    font-size: 0.95rem;
}

.auth-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-pink);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .auth-forms-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-forms-container {
        gap: 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-subtitle {
        font-size: 0.95rem;
    }
}
