/**
 * SVGtoCode Pro - Authentication Forms
 * Styled login, registration, and password reset forms
 */

/* ========================================
   Container & Card
======================================== */
.svgtocode-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.svgtocode-auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.svgtocode-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.svgtocode-auth-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1.5rem;
}

.svgtocode-auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.svgtocode-auth-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   Form Elements
======================================== */
.svgtocode-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.svgtocode-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.svgtocode-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.svgtocode-form-group input[type="text"],
.svgtocode-form-group input[type="email"],
.svgtocode-form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}

.svgtocode-form-group input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.svgtocode-form-group input::placeholder {
    color: #94a3b8;
}

/* Password Field with Toggle */
.svgtocode-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.svgtocode-password-field input {
    padding-right: 44px;
}

.svgtocode-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.svgtocode-toggle-password:hover {
    opacity: 1;
}

/* Password Strength */
.svgtocode-password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    min-height: 8px;
}

.svgtocode-password-strength .strength-bar {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s;
}

.svgtocode-password-strength span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Form Row */
.svgtocode-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Checkbox */
.svgtocode-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.svgtocode-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.svgtocode-checkbox a {
    color: #2563eb;
    text-decoration: none;
}

.svgtocode-checkbox a:hover {
    text-decoration: underline;
}

/* Forgot Link */
.svgtocode-forgot-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.svgtocode-forgot-link:hover {
    text-decoration: underline;
}

/* Form Options Row */
.svgtocode-form-options {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.5rem;
}

/* ========================================
   Buttons
======================================== */
.svgtocode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.svgtocode-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.4);
}

.svgtocode-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px rgba(37, 99, 235, 0.5);
}

.svgtocode-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.svgtocode-btn-outline {
    background: white;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.svgtocode-btn-outline:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.svgtocode-btn-full {
    width: 100%;
}

/* ========================================
   Social Login
======================================== */
.svgtocode-social-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.svgtocode-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s;
}

.svgtocode-social-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.svgtocode-social-btn .social-icon {
    font-size: 18px;
}

.svgtocode-social-google:hover {
    border-color: #4285f4;
    background: #f0f7ff;
}

.svgtocode-social-github:hover {
    border-color: #24292e;
    background: #f5f5f5;
}

.svgtocode-social-apple:hover {
    border-color: #000;
    background: #f5f5f5;
}

/* Divider */
.svgtocode-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.svgtocode-divider::before,
.svgtocode-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.svgtocode-divider span {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

/* ========================================
   Messages
======================================== */
.svgtocode-form-message {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}

.svgtocode-form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.svgtocode-form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ========================================
   Footer
======================================== */
.svgtocode-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

.svgtocode-auth-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.svgtocode-auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   Logged In State
======================================== */
.svgtocode-auth-logged-in {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.svgtocode-auth-logged-in .svgtocode-auth-avatar img {
    border-radius: 50%;
    margin-bottom: 1rem;
}

.svgtocode-auth-logged-in h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.svgtocode-auth-logged-in p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 1.5rem;
}

.svgtocode-auth-logged-in .svgtocode-auth-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Notice */
.svgtocode-auth-notice {
    padding: 1.5rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    text-align: center;
    color: #92400e;
    font-size: 14px;
    max-width: 400px;
    margin: 2rem auto;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 480px) {
    .svgtocode-auth-container {
        padding: 1rem;
    }

    .svgtocode-auth-card {
        padding: 1.75rem;
        border-radius: 16px;
    }

    .svgtocode-auth-header h2 {
        font-size: 1.5rem;
    }

    .svgtocode-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .svgtocode-auth-logged-in .svgtocode-auth-actions {
        flex-direction: column;
    }
}