/* auth.css - RWAFlix Authentication Styles - Mobile Optimized */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body - overflow:hidden kaldırıldı */
body {
    font-family: 'Poppins', sans-serif;
    background: #141414;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow kaldırıldı - mobilde scroll için */
}

.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: url('/static/images/bg.png') no-repeat center center fixed;
    background-size: cover;
    pointer-events: none;
}

.bg-effects::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(3px);
}

.effect-1,
.effect-2,
.effect-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.effect-1 {
    width: 400px;
    height: 400px;
    background: #ff214f;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.effect-2 {
    width: 300px;
    height: 300px;
    background: #8a2be2;
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.effect-3 {
    width: 250px;
    height: 250px;
    background: #3498db;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.9);
    }
}

/* Main Container - Mobil için optimize edildi */
.auth-container {
    width: 100%;
    max-width: 900px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
    display: flex;
    gap: 60px;
    align-items: center;
    min-height: auto;
    margin: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Content Areas */
.auth-left {
    flex: 1;
    min-width: 350px;
}

.auth-right {
    flex: 1;
    min-width: 350px;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.logo {
    width: 180px;
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.welcome-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 30px;
}

/* Toggle Buttons */
.toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
}

.toggle button {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.toggle button i {
    font-size: 14px;
}

.toggle button.active {
    background: #ff214f;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 33, 79, 0.3);
}

.toggle button:hover:not(.active) {
    color: #ff214f;
    background: rgba(255, 33, 79, 0.1);
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px; /* iOS zoom'u önle */
    outline: none;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff214f;
    box-shadow: 0 0 0 3px rgba(255, 33, 79, 0.1);
}

input:focus + .input-icon {
    color: #ff214f;
}

input.error {
    border-color: #e74c3c;
}

input.success {
    border-color: #2ecc71;
}

/* Phone Input Styling */
.phone-prefix {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
    pointer-events: none;
}

.phone-input {
    padding-left: 85px !important;
    letter-spacing: 0.5px;
}

/* Field Error & Success Messages */
.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-success {
    color: #2ecc71;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Password Container */
.password-container {
    position: relative;
}

.password-container input {
    padding-right: 45px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.toggle-password-btn:hover {
    color: #ff214f;
}

/* Password Strength Indicator */
.password-strength {
    font-size: 12px;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.password-strength.medium {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.password-strength.strong {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Checkboxes */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 28px;
    transition: all 0.3s ease;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-box {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.custom-checkbox input:checked ~ .checkbox-box {
    background: #ff214f;
    border-color: #ff214f;
}

.checkbox-box svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-box svg path {
    stroke: #fff;
}

.custom-checkbox input:checked ~ .checkbox-box svg {
    opacity: 1;
}

/* Checkbox Error State */
.custom-checkbox.checkbox-error .checkbox-box {
    border-color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

.custom-checkbox.checkbox-error .checkbox-text {
    color: #e74c3c;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.checkbox-text a {
    color: #ff214f;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 5px;
    -webkit-tap-highlight-color: transparent;
}

.remember input {
    width: auto;
    margin: 0;
    padding: 0;
}

.remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    min-width: 18px;
    min-height: 18px;
    position: relative;
    opacity: 1;
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

.remember span {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.forgot-password {
    color: #ff214f;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.forgot-password:hover {
    opacity: 0.8;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ff214f, #e01d42);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 33, 79, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Social Login */
.social-login {
    margin-top: 40px;
    width: 100%;
    max-width: 350px;
}

.social-login-top {
    margin-bottom: 30px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 42%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 42%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    background: transparent;
    padding: 0 10px;
    position: relative;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn i {
    font-size: 18px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-btn.google:hover {
    background: rgba(219, 68, 55, 0.2);
    border-color: #db4437;
    color: #db4437;
}

.social-btn.discord:hover {
    background: rgba(114, 137, 218, 0.2);
    border-color: #7289da;
    color: #7289da;
}

.social-btn.rwazone:hover {
    background: rgba(255, 33, 79, 0.2);
    border-color: #ff214f;
    color: #ff214f;
}

/* Info Box */
.info-box {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.info-box i {
    color: #3498db;
    font-size: 16px;
}

/* Agreements */
.agreements {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* Alert Messages */
.alert-message {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    position: relative;
}

.alert-content {
    flex: 1;
    line-height: 1.4;
}

.alert-content ul {
    margin: 10px 0 0 20px;
    text-align: left;
}

.alert-content li {
    margin: 5px 0;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.alert-error strong {
    font-weight: 500;
}

.alert-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 0.8;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(26, 26, 26, 0.95);
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #ff214f;
}

.modal-content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff214f;
}

/* Terms & Privacy Modals */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
}

.terms-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.4s ease;
    position: relative;
    margin: 20px auto;
}

.modal-header {
    padding: 30px;
    background: rgba(255, 33, 79, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title i {
    color: #ff214f;
    font-size: 26px;
}

.modal-header .modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.modal-header .modal-close:hover {
    background: rgba(255, 33, 79, 0.1);
    border-color: rgba(255, 33, 79, 0.3);
    color: #ff214f;
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 33, 79, 0.5);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 33, 79, 0.7);
}

.modal-body h2 {
    color: #ff214f;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 33, 79, 0.2);
    font-family: 'Poppins', sans-serif;
}

.modal-body h2:first-child {
    margin-top: 0;
}

.modal-body h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
    margin: 18px 0 8px;
    font-family: 'Poppins', sans-serif;
}

.modal-body p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
}

.modal-body ul {
    margin: 12px 0;
    padding-left: 25px;
}

.modal-body li {
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.modal-body strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.highlight-box {
    background: rgba(255, 33, 79, 0.08);
    border: 1px solid rgba(255, 33, 79, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 18px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.highlight-box i {
    color: #ff214f;
    font-size: 18px;
    flex-shrink: 0;
}

.highlight-box strong {
    color: #ff214f;
}

.modal-footer {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
}

.modal-footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.modal-accept-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff214f, #e01d42);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.modal-accept-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.modal-accept-btn:hover::before {
    left: 100%;
}

.modal-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 33, 79, 0.4);
}

.modal-accept-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 920px) {
    .auth-wrapper {
        padding: 15px;
    }
    
    .auth-container {
        flex-direction: column;
        max-width: 500px;
        gap: 30px;
        padding: 30px;
        margin: 20px auto;
    }

    .auth-left,
    .auth-right {
        min-width: unset;
        width: 100%;
    }

    .auth-left {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .toggle {
        max-width: 100%;
    }
    
    .social-login {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
    
    .modal-container {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-title i {
        font-size: 22px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body h2 {
        font-size: 16px;
    }

    .modal-body h3 {
        font-size: 15px;
    }

    .modal-body p,
    .modal-body li {
        font-size: 13px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
    }

    .modal-footer-text {
        text-align: center;
        font-size: 12px;
    }

    .modal-accept-btn {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 640px) {
    body {
        min-height: auto;
        align-items: flex-start;
    }
    
    .auth-wrapper {
        min-height: auto;
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .auth-container {
        padding: 25px 20px;
        margin: 10px;
        border-radius: 16px;
    }

    .auth-header {
        margin-bottom: 25px;
    }

    .logo {
        width: 140px;
    }
    
    .welcome-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .toggle {
        margin-bottom: 25px;
        padding: 4px;
    }
    
    .toggle button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .toggle button i {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 15px;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .remember {
        padding: 10px 5px;
        min-height: 30px;
        width: 100%;
    }
    
    .remember input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        margin-right: 10px;
    }
    
    .forgot-password {
        padding: 5px;
    }
    
    input {
        padding: 12px 14px 12px 40px;
        font-size: 16px;
    }
    
    .input-icon {
        left: 14px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .social-btn {
        padding: 11px 16px;
        font-size: 13px;
    }
    
    .social-btn span {
        display: inline;
    }
    
    .divider {
        margin: 15px 0;
    }
    
    .info-box {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .agreements {
        padding: 12px;
    }
    
    .custom-checkbox {
        font-size: 13px;
    }
    
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        border-radius: 0;
    }
    
    .modal-footer {
        border-radius: 0;
    }
}

@media (max-width: 400px) {
    .auth-wrapper {
        padding: 5px;
    }
    
    .auth-container {
        padding: 20px 15px;
        margin: 5px;
    }
    
    .logo {
        width: 120px;
    }
    
    .toggle button {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    input {
        padding: 10px 12px 10px 38px;
    }
    
    .submit-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* iOS Safari için özel düzeltmeler */
@supports (-webkit-touch-callout: none) {
    .auth-wrapper {
        min-height: -webkit-fill-available;
    }
    
    input {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Android Chrome için düzeltmeler */
@media screen and (max-width: 768px) {
    .auth-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Landscape mod için */
@media (max-height: 600px) and (orientation: landscape) {
    .auth-wrapper {
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .auth-container {
        margin: 10px auto;
    }
    
    .auth-header {
        margin-bottom: 20px;
    }
    
    .logo {
        width: 100px;
    }
}

/* iOS için özel düzeltme */
@supports (-webkit-touch-callout: none) {
    .remember input[type="checkbox"] {
        -webkit-appearance: checkbox;
        opacity: 1;
        position: relative;
        width: 20px;
        height: 20px;
    }
}