﻿/* register.css */

/* === VARIABLES === */
:root {
    /* Primary Colors */
    --primary-blue: #0ea5e9;
    --primary-purple: #a855f7;
    --primary-lightblue: #0d9ad9;
    --primary-gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-lightblue));
    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-lighter: #f0f9ff;
    --bg-white: #ffffff;
    /* Text Colors */
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    /* Shadow Colors */
    --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 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
}


/* === CONTAINER === */
.container-account {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

    .header-register h1 {
        font-family: 'Poppins', sans-serif;
        font-size: 3.5rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 1rem;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: #fff;
        letter-spacing: -0.025em;
    }

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

/* === FORM CONTAINER === */
.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);
    /*max-width: 500px;*/
    margin: 0 auto;
}

/* === 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 === */
#register-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);
        }

/* Phone field (hidden by default) */
.phone-field {
    display: none;
}

/* Password field specific */
#password,
#confirmpassword {
    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);
    }

/* === TERMS & CONDITIONS === */
.terms {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

    .terms input[type="checkbox"] {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        border: 2px solid var(--border-medium);
        background: var(--bg-white);
        cursor: pointer;
        flex-shrink: 0;
        margin-top: 0.25rem;
        transition: all var(--transition-normal);
    }

        .terms input[type="checkbox"]:checked {
            background-color: var(--primary-blue);
            border-color: var(--primary-blue);
        }

    .terms label {
        font-size: 0.95rem;
        color: var(--text-gray);
        line-height: 1.5;
    }

        .terms label a {
            color: var(--primary-blue);
            text-decoration: none;
            font-weight: 500;
            transition: color var(--transition-fast);
        }

            .terms label a:hover {
                color: #0c8cd6;
                text-decoration: underline;
            }

/* === REGISTER BUTTON === */
.btn-register {
    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-register:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-blue);
    }

    .btn-register: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: not-allowed;
    transition: all var(--transition-normal);
    position: relative;
    opacity: 0.7;
}

    .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;
    }

/* Coming soon badge */
.coming-soon-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

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

    .login-link a {
        color: var(--primary-blue);
        text-decoration: none;
        font-weight: 600;
        transition: all var(--transition-fast);
    }

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.8rem;
    }

    .form-container {
        padding: 2.5rem;
        max-width: 90%;
    }

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

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

    .form-container {
        padding: 2rem;
        border-radius: var(--radius-lg);
    }

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

/* === 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;
    }

    .form-group:nth-child(4) {
        animation-delay: 0.4s;
    }

    .form-group:nth-child(5) {
        animation-delay: 0.5s;
    }

.terms {
    animation-delay: 0.6s;
}

.btn-register {
    animation-delay: 0.7s;
}


/* 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;
}