/**
 * PELSA - Authentication Styles (Login & Register)
 * Ortak form ve authentication sayfası stileleri
 */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --primary-color: #E20110;
    --primary-dark: #b30c08;
    --border-color: #dadce0;
    --label-color: #80868b;
    --text-color: #5f6368;
    --gray-light: #f8f9fa;
    --gray-border: #e5e7eb;
    --success-green: #0d652d;
    --error-red: #c5221f;
    --input-bg: #ffffff;
    --focus-shadow: rgba(226, 1, 16, 0.1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 20px;
    padding-top: 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative Shape 1 - Red Circle (Top Left) */
body::before {
    content: '';
    position: fixed;
    top: -80px;
    left: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(226, 1, 16, 0.35) 0%, rgba(226, 1, 16, 0.15) 50%, transparent 75%);
    border-radius: 50%;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

/* Decorative Shape 2 - Orange Circle (Bottom Right) */
body::after {
    content: '';
    position: fixed;
    bottom: -120px;
    right: -120px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.32) 0%, rgba(255, 140, 0, 0.12) 50%, transparent 75%);
    border-radius: 50%;
    z-index: -1;
    animation: float 25s ease-in-out infinite reverse;
}

/* Additional decorative circles - Light Blue (Top Right) */
body > *:first-child::before {
    content: '';
    position: fixed;
    top: 5%;
    right: 8%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.34) 0%, rgba(135, 206, 235, 0.12) 50%, transparent 75%);
    border-radius: 50%;
    z-index: -1;
    animation: drift 30s ease-in-out infinite;
    pointer-events: none;
}

/* Additional decorative circles - Orange (Bottom Left) */
body > *:last-child::before {
    content: '';
    position: fixed;
    bottom: 8%;
    left: 5%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.3) 0%, rgba(255, 140, 0, 0.1) 50%, transparent 75%);
    border-radius: 50%;
    z-index: -1;
    animation: float 22s ease-in-out infinite;
    pointer-events: none;
}

/* Green Circle (Top Center) - Using body's container */
.home-section::before {
    content: '';
    position: fixed;
    top: 15%;
    left: 12%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(52, 168, 83, 0.28) 0%, rgba(52, 168, 83, 0.1) 50%, transparent 75%);
    border-radius: 50%;
    z-index: -1;
    animation: drift 28s ease-in-out infinite reverse;
    pointer-events: none;
}

/* Purple Circle (Center Right) */
.logo-section::before {
    content: '';
    position: fixed;
    top: 50%;
    right: 12%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.26) 0%, rgba(147, 51, 234, 0.1) 50%, transparent 75%);
    border-radius: 50%;
    z-index: -1;
    animation: float 26s ease-in-out infinite;
    pointer-events: none;
}

/* Pink Circle (Bottom Center) */
.logo-section::after {
    content: '';
    position: fixed;
    bottom: 15%;
    left: 20%;
    width: 290px;
    height: 290px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, rgba(236, 72, 153, 0.1) 50%, transparent 75%);
    border-radius: 50%;
    z-index: -1;
    animation: drift 32s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-30px) translateX(15px);
    }
    50% {
        transform: translateY(-50px) translateX(-10px);
    }
    75% {
        transform: translateY(-25px) translateX(20px);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(40px);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================
   HOME BUTTON
   ========================================== */
.home-section {
    text-align: center;
    margin-bottom: 30px;
}

.home-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: white;
    color: #dc2626;
    border: 1.5px solid #dc2626;
    border-radius: 24px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.1);
}

.home-btn:hover {
    background-color: #fafbfc;
    border-color: #b30c08;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* ==========================================
   LOGO SECTION
   ========================================== */
.logo-section {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none;
}

.logo-section img {
    height: 50px;
    width: auto;
    margin-bottom: 0;
}

/* ==========================================
   FORM STYLES
   ========================================== */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--label-color);
    margin-bottom: 4px;
    font-weight: 500;
    line-height: 1;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--input-bg);
    box-shadow: 0 0 0 4px rgba(226, 1, 16, 0.1);
}

.form-group input::placeholder {
    color: #9aa0a6;
}

/* ==========================================
   FORM ROW (Multi-column fields)
   ========================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* ==========================================
   PASSWORD STRENGTH INDICATOR
   ========================================== */
.password-strength {
    display: none;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.password-strength.show {
    display: block;
}

.password-strength.weak {
    background: #fce8e6;
    color: #c5221f;
}

.password-strength.medium {
    background: #fef7e0;
    color: #9d6e00;
}

.password-strength.strong {
    background: #e6f4ea;
    color: var(--success-green);
}

/* ==========================================
   CHECKBOX GROUP
   ========================================== */
.checkbox-group {
    margin-bottom: 12px;
    padding: 8px 0;
    background-color: transparent;
    border-radius: 4px;
    border: none;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* ==========================================
   CAPTCHA SECTION
   ========================================== */
.captcha-group {
    margin-bottom: 12px;
    padding: 0;
    background-color: transparent;
    border-radius: 4px;
    border: none;
}

.captcha-label {
    font-size: 12px;
    color: var(--label-color);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

.captcha-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.captcha-input {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    background: var(--input-bg);
}

.captcha-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(226, 1, 16, 0.1);
}

.captcha-code {
    padding: 6px 10px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: #202124;
    min-width: 80px;
    text-align: center;
    user-select: none;
}

.captcha-refresh {
    padding: 6px 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.captcha-refresh:hover {
    background: var(--primary-dark);
}

/* ==========================================
   BUTTONS
   ========================================== */
.auth-button {
    width: 100%;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    margin-bottom: 12px;
}

.auth-button:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(226, 1, 16, 0.3);
}

.auth-button:active {
    transform: translateY(1px);
}

/* ==========================================
   FOOTER
   ========================================== */
.form-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-color);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   ALERT MESSAGES
   ========================================== */
.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    display: none;
}

.alert.show {
    display: block;
}

.alert-error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5d5d1;
}

.alert-success {
    background-color: #d1fae5;
    color: #0d652d;
    border: 1px solid #a7f3d0;
}

/* ==========================================
   DECORATIVE SHAPES FOR LOGIN/REGISTER
   ========================================== */
.login-container::before,
.register-container::before,
.register-benefits::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    z-index: -1;
    pointer-events: none;
}

.login-container {
    position: relative;
}

.login-container::before {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(226, 1, 16, 0.35) 0%, rgba(226, 1, 16, 0.15) 50%, transparent 75%);
    animation: softPulse 18s ease-in-out infinite;
}

.register-container {
    position: relative;
}

.register-container::before {
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.32) 0%, rgba(255, 140, 0, 0.12) 50%, transparent 75%);
    animation: softPulse 20s ease-in-out infinite;
}

.register-benefits {
    position: relative;
}

.register-benefits::before {
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.3) 0%, rgba(135, 206, 235, 0.12) 50%, transparent 75%);
    animation: softPulse 22s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.08);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 12px;
    }

    .logo-section img {
        height: 40px;
    }
}
