﻿/* ============================================================
   PDFjin – Premium Authentication Styles (v2.0)
   Focused on: Modern, Professional, and Secure Aesthetics
   ============================================================ */

:root {
    --auth-primary: #6366f1;
    --auth-primary-hover: #4f46e5;
    --auth-bg: #f8fafc;
    --auth-card: #ffffff;
    --auth-text: #1e293b;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-error: #ef4444;
    --auth-error-bg: #fef2f2;
    --auth-radius: 16px;
    --auth-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--auth-bg);
    color: var(--auth-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: var(--auth-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* --- Left Side: Branding/Visual --- */
.visual-section {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 48px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6zM36 4V0h-2v4h-4v2h4v4h2V6h4V4h-36z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.visual-content {
    position: relative;
    z-index: 2;
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.visual-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.visual-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 32px;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Right Side: Form --- */
.form-section {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
}

.auth-header {
    margin-bottom: 32px;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 32px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--auth-text);
}

.logo-text span {
    color: var(--auth-primary);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--auth-muted);
    font-size: 0.95rem;
}

/* Social Buttons */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: white;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--auth-text);
}

.social-btn:hover {
    background: var(--auth-bg);
    border-color: #cbd5e1;
}

.social-btn svg,
.social-btn img {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--auth-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
}

.input-wrap input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--auth-border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.input-wrap input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-btn {
    background: var(--auth-primary);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.auth-btn:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.auth-footer {
    margin-top: auto;
    padding-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.auth-footer a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-error-msg {
    background: var(--auth-error-bg);
    color: var(--auth-error);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .visual-section {
        display: none;
    }

    .auth-container {
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 32px 24px;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}