* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
}

/* Landing page olmayan sayfalarda body flex */
body:not(.landing-page-body) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #ff6b35;
    font-size: 2.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.logo p {
    color: #ffffff;
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@media (max-width: 480px) {
    .form-container.active {
        animation: fadeIn 0.2s ease-in;
    }
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.toggle-form {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-form p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.toggle-form a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.toggle-form a:hover {
    color: #ff8c42;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.error-message {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.5);
    color: #ff3b30;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.success-message {
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid rgba(52, 199, 89, 0.5);
    color: #34c759;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    display: none;
}

.success-message.show {
    display: block;
}

.password-toggle {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    font-weight: 500;
    transition: color 0.3s ease;
    user-select: none;
    padding: 2px 8px;
}

.password-toggle-icon:hover {
    color: #ff6b35;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 2em;
    }
}

/* Modal Overlay Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 0;
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-start;
        padding-top: 0;
    }
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
    margin: 20px;
}

/* Modal scroll bar stilleri */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.7);
}

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

@media (max-width: 480px) {
    .modal-container {
        animation: slideUpMobile 0.25s ease;
    }
}

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

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.5);
    border-radius: 8px;
    color: #ff3b30;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 59, 48, 0.3);
    transform: scale(1.1);
}

/* Modal İçi Özel Stiller */
.auth-modal {
    padding: 40px;
    max-width: 500px;
    position: relative;
}

.modal-logo {
    margin-bottom: 30px;
    padding: 0;
}

.modal-logo h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
}

.modal-logo p {
    font-size: 0.95em;
    margin-top: 8px;
}

/* Modal içindeki form container */
.auth-modal .form-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

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

.auth-modal .form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 500;
}

.auth-modal .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-modal .form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.auth-modal .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-modal .password-toggle {
    position: relative;
}

.auth-modal .password-toggle input {
    padding-right: 100px;
}

.auth-modal .password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    font-weight: 500;
    transition: color 0.3s ease;
    user-select: none;
    padding: 2px 8px;
    z-index: 1;
}

.auth-modal .password-toggle-icon:hover {
    color: #ff6b35;
}

.auth-modal .btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.auth-modal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.auth-modal .btn:active {
    transform: translateY(0);
}

.auth-modal .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-modal .toggle-form {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-modal .toggle-form p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.auth-modal .toggle-form a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-modal .toggle-form a:hover {
    color: #ff8c42;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.auth-modal .error-message {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.5);
    color: #ff3b30;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    display: none;
}

.auth-modal .error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

.auth-modal .success-message {
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid rgba(52, 199, 89, 0.5);
    color: #34c759;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    display: none;
}

.auth-modal .success-message.show {
    display: block;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-container {
        margin: 10px;
        max-height: 95vh;
    }

    .auth-modal {
        padding: 25px 20px;
        max-width: 95%;
    }

    .modal-logo {
        margin-bottom: 20px;
    }

    .modal-logo h1 {
        font-size: 1.7em;
        margin-bottom: 5px;
    }

    .modal-logo p {
        font-size: 0.85em;
        margin-top: 5px;
    }

    .auth-modal .form-group {
        margin-bottom: 16px;
    }

    .auth-modal .form-group label {
        font-size: 0.85em;
        margin-bottom: 6px;
    }

    .auth-modal .form-group input {
        font-size: 16px; /* iOS zoom önleme */
        padding: 10px 12px;
    }

    .auth-modal .password-toggle-icon {
        font-size: 0.8em;
        right: 12px;
    }

    .auth-modal .btn {
        padding: 12px;
        font-size: 1em;
        margin-top: 8px;
    }

    .auth-modal .toggle-form {
        margin-top: 20px;
        padding-top: 20px;
    }

    .auth-modal .toggle-form p {
        font-size: 0.85em;
    }

    .auth-modal .error-message,
    .auth-modal .success-message {
        padding: 10px;
        font-size: 0.85em;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .auth-modal {
        padding: 20px 16px;
        max-width: 100%;
    }

    .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 0.9em;
    }

    .modal-logo {
        margin-bottom: 16px;
    }

    .modal-logo h1 {
        font-size: 1.5em;
        margin-bottom: 4px;
        letter-spacing: 1px;
    }

    .modal-logo p {
        font-size: 0.8em;
        margin-top: 4px;
    }

    .auth-modal .form-group {
        margin-bottom: 14px;
    }

    .auth-modal .form-group label {
        font-size: 0.8em;
        margin-bottom: 5px;
    }

    .auth-modal .form-group input {
        font-size: 16px; /* iOS zoom önleme */
        padding: 10px 12px;
        border-radius: 8px;
    }

    .auth-modal .password-toggle input {
        padding-right: 85px;
    }

    .auth-modal .password-toggle-icon {
        font-size: 0.75em;
        right: 10px;
        padding: 2px 6px;
    }

    .auth-modal .btn {
        padding: 11px;
        font-size: 0.95em;
        margin-top: 6px;
        letter-spacing: 0.5px;
    }

    .auth-modal .toggle-form {
        margin-top: 16px;
        padding-top: 16px;
    }

    .auth-modal .toggle-form p {
        font-size: 0.8em;
        line-height: 1.5;
    }

    .auth-modal .error-message,
    .auth-modal .success-message {
        padding: 10px;
        font-size: 0.8em;
        margin-bottom: 14px;
        border-radius: 6px;
    }
}

/* Çok küçük ekranlar için ek optimizasyon */
@media (max-width: 360px) {
    .auth-modal {
        padding: 16px 12px;
    }

    .modal-logo h1 {
        font-size: 1.3em;
    }

    .modal-logo p {
        font-size: 0.75em;
    }

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

    .auth-modal .form-group input {
        padding: 9px 10px;
    }

    .auth-modal .btn {
        padding: 10px;
        font-size: 0.9em;
    }
}

