﻿
/* === VARIABLES === */
:root {
    --primary-blue: #0ea5e9;
    --primary-lightblue: #0d9ad9;
    --primary-purple: #a855f7;
    --primary-gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-lightblue));
    --bg-light: #f8fafc;
    --bg-lighter: #f0f9ff;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-hr: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-blue: 0 15px 35px rgba(14, 165, 233, 0.3);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
}


.login-container {
    width: 100%;
    max-width: 1200px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === LOGIN HEADER === */
.login-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    background: #1f94d4;
    border-radius: 12px;
    padding: 1.4rem 1rem;
}

    .login-header h1 {
        font-family: 'Poppins', sans-serif;
        font-size: 2.8rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -0.025em;
        color: #fff;
    }

    .login-header p {
        font-size: 1.2rem;
        color: #fff;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

/* HR Styling */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 0 3rem;
}

.container-account {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.form-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin: 0 auto;
}

/* === LOGIN BODY === */
.login-body {
    padding: 2.5rem 3rem 3rem;
}

/* === LOGIN OPTIONS === */
.login-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1rem;
}

.login-option {
    flex: 1;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
}

    .login-option:hover {
        color: var(--primary-blue);
        background: rgba(14, 165, 233, 0.05);
    }

    .login-option.active {
        color: var(--primary-blue);
        background: rgba(14, 165, 233, 0.1);
    }

        .login-option.active::after {
            content: '';
            position: absolute;
            bottom: -1rem;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--primary-gradient);
            border-radius: 2px;
        }

/* === FORM STYLES === */
#login-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    position: relative;
}

    .form-group label {
        display: block;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-dark);
        margin-bottom: 0.75rem;
    }

    .form-group input {
        width: 100%;
        padding: 1.1rem 1.5rem;
        background: var(--bg-light);
        border: 2px solid var(--border-light);
        border-radius: var(--radius-lg);
        color: var(--text-dark);
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        transition: all var(--transition-normal);
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-blue);
            background: var(--bg-white);
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
        }

        .form-group input::placeholder {
            color: var(--text-light);
        }

/* Primary input special styling */
.primary-input {
    border-color: var(--primary-blue) !important;
    background: rgba(14, 165, 233, 0.05) !important;
}

/* Hidden field */
.hidden {
    display: none !important;
}

/* Password field specific */
#password {
    padding-right: 3.5rem;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

    .password-toggle:hover {
        color: var(--primary-blue);
    }

/* === LOGIN BUTTON === */
.btn-login {
    width: 100%;
    padding: 1.3rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--bg-white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

    .btn-login:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-blue);
    }

    .btn-login:active {
        transform: translateY(-1px);
    }

/* === DIVIDER === */
.divider {
    display: flex;
    align-items: center;
    margin: 2.5rem 0;
    color: var(--text-light);
    font-weight: 500;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    }

    .divider span {
        padding: 0 1.5rem;
        background: var(--bg-white);
    }

/* === SOCIAL LOGIN === */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-gray);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

    .social-btn:hover {
        background: var(--bg-light);
        border-color: var(--primary-blue);
    }

    /* Social button icons */
    .social-btn.google::before {
        content: 'G';
        font-weight: bold;
        color: #DB4437;
    }

    .social-btn.facebook::before {
        content: 'f';
        font-weight: bold;
        color: #4267B2;
    }

/* === SIGNUP LINK === */
.signup-link {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 1rem;
    color: var(--text-gray);
}

    .signup-link a {
        color: var(--primary-blue);
        text-decoration: none;
        transition: all var(--transition-fast);
        margin-left: 0.5rem;
    }

    .signup-link b {
        font-weight: 600;
    }

    .signup-link a:hover {
        color: #0c8cd6;
        text-decoration: underline;
    }

/* === ANIMATIONS === */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    animation: slideIn 0.4s ease-out forwards;
}

    .form-group:nth-child(1) {
        animation-delay: 0.1s;
    }

    .form-group:nth-child(2) {
        animation-delay: 0.2s;
    }

    .form-group:nth-child(3) {
        animation-delay: 0.3s;
    }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .login-container {
        max-width: 90%;
    }

    .login-header,
    .login-body {
        padding: 2rem;
    }

        .login-header h1 {
            font-size: 2rem;
        }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.8rem;
    }

    .login-header,
    .login-body {
        padding: 1.5rem;
    }

    .login-options {
        flex-direction: column;
    }

    .social-btn {
        font-size: 0.95rem;
        padding: 1rem;
    }
}

/* === ERROR STATES === */
.form-group input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

/* === LOADING STATE === */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

    .btn-login.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === FORGOT PASSWORD LINK === */
.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

    .forgot-password a {
        color: var(--primary-blue);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color var(--transition-fast);
    }

        .forgot-password a:hover {
            color: #0c8cd6;
            text-decoration: underline;
        }



/* Header */
.app-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
    border: solid 2px #0075dd;
    border-radius: 12px;

    background-color: #0d9ad9;
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center; /* 👈 */
    gap: 12px;
    margin: 0 auto; /* 👈 ORTALAMA */
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.logo-text {
    text-align: center;
}

    .logo-text h1 {
        font-size: 24px;
        font-weight: 700;
        /*color: var(--dark);*/
        line-height: 1.2;
    }

    .logo-text p {
        font-size: 14px;
        /*color: var(--gray);*/
        margin-top: 4px;
    }

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary), #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}
