﻿
/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary: #06d6a0;
    --accent: #ff6b6b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

/* Full Page Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 80%;
    animation-delay: 1s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 85%;
    animation-delay: 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 15%;
    animation-delay: 3s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 60%;
    left: 5%;
    animation-delay: 4s;
}

/* Main Container */
.auth-container-full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.auth-card-full {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    display: flex;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

/* Graphics Side */
.auth-graphics {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.graphics-container {
    text-align: center;
    color: white;
    z-index: 2;
}

.main-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
}

.circle-inner {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 3;
}

.circle-orbits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orbit {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitRotate 10s linear infinite;
}

.orbit-1 {
    width: 120%;
    height: 120%;
    animation-delay: 0s;
}

.orbit-2 {
    width: 140%;
    height: 140%;
    animation-delay: -3s;
    border-style: dashed;
}

.orbit-3 {
    width: 160%;
    height: 160%;
    animation-delay: -6s;
    border-width: 1px;
}

.graphics-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.graphics-text p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Form Side */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

    .form-header h1 {
        font-size: 32px;
        font-weight: 700;
        color: var(--gray-800);
        margin-bottom: 8px;
        letter-spacing: -0.025em;
    }

    .form-header p {
        color: var(--gray-600);
        font-size: 14px;
    }

/* Verification Code */
.verification-section {
    margin-bottom: 24px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
    font-size: 14px;
}

.code-input-container {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    transition: all 0.3s ease;
    color: var(--gray-800);
}

    .code-input:focus {
        border-color: var(--primary);
        background: white;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        outline: none;
        transform: translateY(-2px);
    }

    .code-input.filled {
        border-color: var(--secondary);
        background: rgba(6, 214, 160, 0.05);
        color: var(--secondary);
    }

.code-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: var(--gray-500);
    font-size: 12px;
    margin-top: 8px;
    justify-content: center;
}

/* Custom Divider */
.section-divider-custom {
    display: flex;
    align-items: center;
    margin: 32px 0;
    gap: 16px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--gray-50);
    transition: all 0.3s ease;
    color: var(--gray-800);
}

    .form-input:focus {
        border-color: var(--primary);
        background: white;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        outline: none;
        transform: translateY(-1px);
    }

    .form-input::placeholder {
        color: var(--gray-400);
    }

.password-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 12px;
    margin-top: 4px;
}

/* Alert & Validation */
.alert-message {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

    .alert-message.success {
        background: #f0fdf4;
        color: var(--success);
        border: 1px solid #bbf7d0;
    }

    .alert-message.error {
        background: #fef2f2;
        color: var(--error);
        border: 1px solid #fecaca;
    }

.validation-summary {
    background: #fef2f2;
    color: var(--error);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid #fecaca;
    font-size: 14px;
}

.validation-error {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    margin-top: 8px;
}
.submit-btn-top {
    width: auto;
    display: inline-block;
    font-size: 10px;
    padding: 4px 10px;
    background: #4ac694;
    color: #022c0d;
    border-radius: 3px;
}
    .submit-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.btn-loading {
    position: absolute;
    right: 16px;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.back-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

    .back-link:hover {
        color: var(--primary);
    }

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes orbitRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .auth-card-full {
        flex-direction: column;
        max-width: 500px;
    }

    .auth-graphics {
        padding: 30px;
    }

    .main-circle {
        width: 150px;
        height: 150px;
        margin-bottom: 30px;
    }

    .circle-inner {
        font-size: 40px;
    }

    .graphics-text h2 {
        font-size: 24px;
    }

    .auth-form-side {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .auth-container-full {
        padding: 10px;
    }

    .auth-graphics {
        padding: 20px;
    }

    .auth-form-side {
        padding: 20px;
    }

    .code-input {
        width: 42px;
        height: 50px;
        font-size: 18px;
    }

    .main-circle {
        width: 120px;
        height: 120px;
    }

    .circle-inner {
        font-size: 32px;
    }
}


