/* ========================================
   Bayi Giriş Sayfası - iOS Modern Tasarım
   Native App Style | Minimal | Professional
======================================== */

:root {
    --primary-color: #007AFF;
    --primary-hover: #0056CC;
    --primary-light: rgba(0, 122, 255, 0.1);
    --secondary-color: #8E8E93;
    --success-color: #34C759;
    --danger-color: #FF3B30;
    --warning-color: #FF9500;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F7;
    --gray-200: #E5E5EA;
    --gray-300: #D1D1D6;
    --gray-400: #C7C7CC;
    --gray-500: #AEAEB2;
    --gray-600: #8E8E93;
    --gray-700: #636366;
    --gray-800: #48484A;
    --gray-900: #1C1C1E;
    --text-primary: #1C1C1E;
    --text-secondary: #3A3A3C;
    --text-tertiary: #48484A;
    --text-quaternary: #8E8E93;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --bg-tertiary: #FFFFFF;
    --bg-grouped: #F2F2F7;
    --border-primary: #C6C6C8;
    --border-secondary: #E5E5EA;
    --border-tertiary: #F2F2F7;
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-heavy: rgba(0, 0, 0, 0.12);
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow: hidden;
}

.login-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 1px 3px var(--shadow-light),
        0 8px 24px var(--shadow-medium),
        0 16px 48px var(--shadow-heavy);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    border: 1px solid var(--border-tertiary);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-content {
    padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-xl);
    text-align: center;
    position: relative;
    z-index: 2;
}



.brand-logo {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    width: 100%;
}

.brand-logo i {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.logo-image {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px var(--shadow-light));
    display: block;
    margin: 0 auto;
}

.form-title {
    color: var(--text-primary);
    font-size: 1.625rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.form-subtitle {
    color: var(--text-quaternary);
    font-size: 15px;
    margin-bottom: var(--spacing-xl);
    font-weight: var(--font-weight-regular);
    line-height: 1.4;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.form-floating {
    margin-bottom: 16px;
    text-align: left;
}

.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 18px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 250, 252, 0.6);
    height: 64px;
    font-weight: 400;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: #007aff;
    box-shadow: 
        0 0 0 3px rgba(0, 122, 255, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
    outline: none;
    background: #ffffff;
}

.password-container .form-control:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-control:hover {
    border-color: #a1a1a6;
}

.form-floating>label {
    color: #86868b;
    font-weight: 400;
    font-size: 17px;
    padding-left: 14px;
}

.form-control:focus~label,
.form-control:not(:placeholder-shown)~label {
    color: #007aff;
    font-weight: 500;
}

.btn-login {
    background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
    border: none;
    border-radius: 14px;
    padding: 20px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    width: 100%;
    margin-bottom: 0;
    height: 64px;
    letter-spacing: -0.01em;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 1px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0056cc 0%, #004499 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-login:hover::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.btn-login:active {
    background: #004499;
}

.btn-login:disabled {
    background: #d2d2d7;
    color: #86868b;
}

.btn-register {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 0;
    height: 58px;
    letter-spacing: -0.01em;
    backdrop-filter: blur(10px);
}

.btn-register:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-register:active {
    background: #e5e5e7;
}

.btn-register:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    border-color: #007aff;
}

.forgot-password {
    color: #007aff;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #0056cc;
}

.form-check {
    text-align: left;
}

.form-check-label {
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.form-check-input {
    border-radius: 3px;
    border: 1px solid #d2d2d7;
    width: 16px;
    height: 16px;
    margin-top: 0.125em;
}

.form-check-input:checked {
    background-color: #007aff;
    border-color: #007aff;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    border-color: #007aff;
}

.form-check-input:hover {
    border-color: #a1a1a6;
}

.password-container {
    position: relative;
    margin-bottom: 16px;
}

.password-input {
    padding-right: 50px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.password-toggle:hover {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.04);
}

.password-toggle:active {
    color: #007aff;
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-50%) scale(0.95);
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.password-toggle i {
    font-size: 16px;
    transition: all 0.2s ease;
}

.alert {
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.4s ease;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.12) 0%, rgba(255, 149, 0, 0.08) 100%);
    color: #d97706;
}

.alert-warning::before {
    background: linear-gradient(180deg, #ff9500 0%, #f59e0b 100%);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.12) 0%, rgba(255, 59, 48, 0.08) 100%);
    color: #dc2626;
}

.alert-danger::before {
    background: linear-gradient(180deg, #ff3b30 0%, #dc2626 100%);
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--primary-hover);
    transform: translateX(-4px);
}

@media (max-width: 576px) {
    body {
        padding: 0;
        background: #ffffff;
        min-height: 100vh;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .login-container {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
    }

    .login-content {
        padding: 32px 24px;
        width: 100%;
    }

    .brand-logo {
        font-size: 1.625rem;
        margin-bottom: 8px;
        width: 100%;
    }

    .logo-image {
        height: 80px;
        max-width: 100%;
        margin: 0 auto;
    }

    .form-title {
        font-size: 1.375rem;
    }

    .form-control {
        font-size: 16px;
    }
}
