/**
 * ROY KAPAK - Giriş ve Kayıt Sayfaları CSS
 * Ana Sayfa ile Uyumlu Modern Tasarım
 */

/* ===== MOBİLDE AVANTAJLAR KISMINI KESİNLİKLE GİZLE ===== */
@media (max-width: 768px) {
    .auth-info-card {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ===== GENEL STİLLER ===== */
.auth-page {
    background-color: var(--light-bg);
    min-height: 100vh;
}

/* ===== ZORLA RENK UYGULAMA ===== */
.auth-form-header h2,
.auth-form-header h3,
.auth-form-header p {
    color: #FFFFFF !important;
}

.auth-form-header .auth-form-welcome {
    color: #F5F5F5 !important;
}

.auth-form-header .auth-form-subtitle {
    color: #E0E0E0 !important;
}

/* =====================================================
   ROY KAPAK - Authentication Styles
   Modern ve Responsive Tasarım
   ===================================================== */

/* Registration Type Selector */
.registration-type-selector {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.selector-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 20px;
    text-align: center;
}

.type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.type-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-option input[type="radio"] {
    display: none;
}

.option-content {
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.option-content i,
.option-content span,
.option-content small {
    position: relative;
    z-index: 2;
}

.type-option input[type="radio"]:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(221, 127, 47, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(221, 127, 47, 0.2);
}

.type-option input[type="radio"]:checked + .option-content::before {
    opacity: 0.05;
}

.type-option:hover .option-content {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.option-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.option-content span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    display: block;
    margin-bottom: 5px;
}

.option-content small {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
}

/* Company Fields */
.company-fields {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Auth Form Section */
.auth-form-section {
    padding: 10px 0 60px 0;
    background: var(--light-bg);
    min-height: 100vh;
    margin-top: 0px;
    position: relative;
    top: 90px; /* Form'u daha aşağı kaydır - header'dan uzaklaştır */
}

.auth-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.auth-form-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-form-header {
    background: #2B2B2B !important; /* Antrasit renk - zorla uygula */
    padding: 40px;
    text-align: center;
    color: #FFFFFF !important; /* Beyaz renk - zorla uygula */
}

.auth-form-logo {
    margin-bottom: 20px;
}

.auth-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1) !important; /* Logoyu beyaz yap - zorla uygula */
}

.auth-form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
    color: #FFFFFF;
}

.auth-form-welcome {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F5F5F5 !important; /* Açık beyaz - zorla uygula */
}

.auth-form-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 500;
    color: #E0E0E0 !important; /* Antrasit-beyaz ton - zorla uygula */
}

.auth-form-body {
    padding: 40px;
}

/* Alerts */
.auth-alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.auth-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.auth-alert i {
    font-size: 1.2rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.form-input {
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(221, 127, 47, 0.1);
    transform: translateY(-1px);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

.form-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-checkbox {
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Buttons */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c66a1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(221, 127, 47, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.social-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.google-btn {
    border-color: #4285f4;
    color: #4285f4;
}

.google-btn:hover {
    background: #4285f4;
    border-color: #4285f4;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light-gray);
}

.auth-divider span {
    background: var(--white);
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--light-gray);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Info Card */
.auth-info-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.auth-info-content {
    padding: 40px;
}

.auth-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    margin: 0 0 8px 0;
    color: var(--dark-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.benefit-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .auth-form-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .auth-form-card {
        order: -1 !important;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .auth-info-card {
        order: 1 !important;
        position: static;
    }
}

@media (max-width: 1024px) {
    .auth-form-wrapper {
        padding: 0 30px;
    }
    
    .auth-form-card {
        max-width: 550px;
    }
}

@media (max-width: 900px) {
    .auth-form-wrapper {
        padding: 0 25px;
    }
    
    .auth-form-card {
        max-width: 500px;
    }
    
    .auth-info-card {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .auth-form-wrapper {
        padding: 0 20px;
    }
    
    .auth-form-card {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .auth-form-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 20px !important;
    }
    
    .auth-form-card {
        order: -1 !important; /* Login/Register formu üstte olsun */
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    .auth-info-card {
        display: none !important; /* Avantajlar kısmını gizle */
    }
    
    .auth-form-section {
        padding: 5px 0;
        margin-top: 0px;
        position: relative;
        top: 70px;
    }
    
    .auth-form-header {
        padding: 30px;
    }
    
    .auth-form-body {
        padding: 30px;
    }
    
    .auth-info-content {
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .type-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .auth-form-wrapper {
        padding: 0 15px;
    }
    
    .auth-form-card {
        max-width: 400px;
    }
    
    .auth-form-section {
        top: 75px;
    }
    
    .auth-form-header {
        padding: 25px;
    }
    
    .auth-form-body {
        padding: 25px;
    }
    
    .auth-form-header h2 {
        font-size: 1.6rem;
    }
    
    .auth-form-header h3 {
        font-size: 1rem;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-form-wrapper {
        padding: 0 12px;
    }
    
    .auth-form-card {
        max-width: 350px;
    }
    
    .auth-form-section {
        top: 80px;
    }
    
    .auth-form-header {
        padding: 20px;
    }
    
    .auth-form-body {
        padding: 20px;
    }
    
    .auth-form-header h2 {
        font-size: 1.4rem;
    }
    
    .auth-form-header h3 {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
    
    .auth-form-title {
        font-size: 1.8rem;
    }
    
    .auth-form-welcome {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .auth-form-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 15px !important;
    }
    
    .auth-form-card {
        order: -1 !important; /* Login/Register formu üstte olsun */
        width: 100% !important;
        max-width: 450px !important;
        margin: 0 auto !important;
    }
    
    .auth-info-card {
        display: none !important; /* Avantajlar kısmını gizle */
    }
    
    .auth-form-section {
        padding: 2px 0;
        margin-top: 0px;
        position: relative;
        top: 75px;
    }
    
    .auth-form-header {
        padding: 25px;
    }
    
    .auth-form-body {
        padding: 25px;
    }
    
    .auth-info-content {
        padding: 25px;
    }
    
    .auth-form-title {
        font-size: 1.6rem;
    }
    
    .auth-form-welcome {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .registration-type-selector,
    .company-fields {
        padding: 20px;
    }
}

/* ===== ALERTS ===== */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ===== FORM ELEMANLARI ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2B2B2B;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: #2B2B2B;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(221, 127, 47, 0.1);
}

.form-input::placeholder {
    color: var(--gray);
}

/* ===== PASSWORD INPUT ===== */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.125rem;
    transition: color 0.3s ease;
    padding: 0.25rem;
}

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

/* ===== CHECKBOX ===== */
.form-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2B2B2B;
    line-height: 1.4;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-color);
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #c66a2a;
    text-decoration: underline;
}

/* ===== SUBMIT BUTTON ===== */
.auth-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(221, 127, 47, 0.3);
}

/* ===== DIVIDER ===== */
.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--gray);
    font-size: 0.9rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--secondary-color);
    z-index: 1;
}

.auth-divider span {
    background: var(--white);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

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

.social-btn {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    background: var(--white);
    color: #2B2B2B;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(221, 127, 47, 0.3);
}

.google-btn:hover {
    background: #4285f4;
    border-color: #4285f4;
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    background: var(--light-bg);
}

.auth-footer p {
    margin: 0;
    color: #2B2B2B;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #c66a2a;
    text-decoration: underline;
}

/* ===== INFO CARD ===== */
.auth-info-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--secondary-color);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.auth-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2B2B2B;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2B2B2B;
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', serif;
}

.benefit-content p {
    font-size: 0.9rem;
    color: #2B2B2B;
    margin: 0;
    line-height: 1.4;
}

/* ===== RESPONSIVE TASARIM ===== */
/* Bu kısım yukarıda zaten tanımlandı, tekrar etmiyoruz */

/* ===== ANİMASYONLAR ===== */
.auth-form-card,
.auth-info-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* ===== HOVER EFEKTLERİ ===== */
.auth-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ===== LOADING STATES ===== */
.auth-submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.auth-submit-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SON ÇARE: MOBİLDE AVANTAJLAR KISMINI KESİNLİKLE GİZLE ===== */
@media screen and (max-width: 768px) {
    .auth-info-card,
    .auth-info-content,
    .auth-info-title,
    .auth-info-list {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
}
