/**
 * Login Page Styles
 * Tipografi: 8px grid sistemi
 * Font boyutlarÄ±: px bazlÄ±
 */

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #404040;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 24px 24px 72px 24px;
    line-height: 1.5;
    overflow-y: auto;
}

/* Register sayfasÄ± iÃ§in Ã¶zel body ayarÄ± */
body:has(.register-container) {
    padding: 24px;
    justify-content: center;
}

/* ===== Container ===== */
.login-container {
    width: 100%;
    max-width: 448px;
    animation: fadeIn 0.6s ease;
    padding: 0 8px;
}

/* ===== Logo Section ===== */
.logo-section {
    text-align: center;
    margin-bottom: 48px;
}

.logo-section img {
    max-width: 192px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}



/* ===== Form Section ===== */
.form-section {
    background: transparent;
}

/* ===== Alert Box ===== */
.alert-box {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: none;
    font-size: 15px;
    animation: slideDown 0.3s ease;
    line-height: 1.5;
}

.alert-box.show {
    display: block;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-left: 4px solid #fbbf24;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%);
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 4px solid #60a5fa;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
    color: #a7f3d0;
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-left: 4px solid #34d399;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== Form Groups ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group .form-label {
    margin-bottom: 8px;
}

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* ===== Labels ===== */
.form-label {
    display: block;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0;
    line-height: 1.4;
}

.forgot-link-inline {
    color: #b8c5d6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.forgot-link-inline:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== Input Fields ===== */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    transition: all 0.3s ease;
    font-weight: 400;
    line-height: 1.5;
}

/* Input Container (for password toggle) */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Password input with toggle icon */
.input-container .form-input {
    padding: 14px 48px 14px 16px;
}

.form-input:focus {
    outline: none;
    border-color: #5a9fd4;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(90, 159, 212, 0.15);
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-input:disabled {
    background: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
}

/* ===== Password Toggle ===== */
.password-toggle {
    position: absolute;
    right: 16px;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
    transition: opacity 0.3s ease;
    user-select: none;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.password-toggle:hover {
    opacity: 0.7;
}

.password-toggle svg {
    display: block;
}

/* ===== Submit Button ===== */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5a9fd4 0%, #4a8fc4 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(90, 159, 212, 0.4);
    position: relative;
    overflow: hidden;
    line-height: 1.5;
}

/* Register sayfasÄ± iÃ§in buton */
.register-container .btn-submit {
    padding: 14px;
    font-size: 15px;
    margin-top: 16px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover:not(:disabled)::before {
    left: 100%;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #4a8fc4 0%, #3a7fb4 100%);
    box-shadow: 0 6px 20px rgba(90, 159, 212, 0.5);
    transform: translateY(-2px);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(90, 159, 212, 0.3);
}

.btn-submit:disabled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .spinner {
    display: block;
}

/* ===== Spinner ===== */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* ===== Signup Link ===== */
.signup-link {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Register sayfasÄ± iÃ§in signup link */
.register-container .signup-link {
    margin-top: 24px;
    padding-top: 24px;
}

.signup-link span {
    color: #9ca3af;
    font-size: 15px;
    margin-right: 8px;
    font-weight: 400;
    line-height: 1.5;
}

.signup-link a {
    color: #7db3e0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    line-height: 1.5;
}

.signup-link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #7db3e0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.signup-link a:hover {
    color: #ffffff;
    background: rgba(90, 159, 212, 0.15);
}

.signup-link a:hover::after {
    width: 80%;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== Responsive: Tablet ===== */
@media (max-width: 768px) {
    body {
        padding: 30px 15px 70px 15px;
    }
    
    .login-container {
        max-width: 420px;
    }
    
    .logo-section {
        margin-bottom: 2.5rem;
    }
    
    .logo-section img {
        max-width: 180px;
    }
    
    .form-input {
        padding: 0.95rem 1rem;
        font-size: 0.9rem;
    }
    
    .input-container .form-input {
        padding: 0.95rem 3rem 0.95rem 1rem;
    }
    
    .password-toggle {
        right: 14px;
        font-size: 18px;
    }
    
    .btn-submit {
        padding: 1rem;
        font-size: 0.95rem;
        margin-top: 1.4rem;
    }
    
    .signup-link {
        margin-top: 1.6rem;
        padding-top: 1.6rem;
    }
    

}

/* ===== Responsive: Mobile ===== */
@media (max-width: 480px) {
    body {
        padding: 20px 15px 65px 15px;
    }
    
    .login-container {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .logo-section {
        margin-bottom: 2rem;
    }
    
    .logo-section img {
        max-width: 150px;
    }
    
    .form-group {
        margin-bottom: 1.1rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-input {
        padding: 0.9rem;
        font-size: 0.9rem;
        border-radius: 7px;
    }
    
    .input-container .form-input {
        padding: 0.9rem 2.8rem 0.9rem 0.9rem;
    }
    
    .password-toggle {
        right: 13px;
        font-size: 18px;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .language-dropdown {
        padding: 0.32rem 0.6rem;
        font-size: 0.72rem;
    }
    
    .password-label-row {
        gap: 0.5rem;
    }
    
    .forgot-link-inline {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .btn-submit {
        padding: 0.95rem;
        font-size: 0.9rem;
        margin-top: 1.3rem;
        border-radius: 7px;
    }
    
    .signup-link {
        margin-top: 1.4rem;
        padding-top: 1.4rem;
    }
    
    .signup-link span {
        font-size: 0.88rem;
    }
    
    .signup-link a {
        font-size: 0.88rem;
        padding: 0.35rem 0.7rem;
    }
    

    
    .alert-box {
        padding: 0.85rem;
        font-size: 0.88rem;
        margin-bottom: 1.2rem;
    }
}

/* ===== Responsive: Small Mobile ===== */
@media (max-width: 360px) {
    body {
        padding: 16px 8px 56px 8px;
    }
    
    .logo-section {
        margin-bottom: 24px;
    }
    
    .logo-section img {
        max-width: 128px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-input {
        padding: 12px;
        font-size: 14px;
    }
    
    .input-container .form-input {
        padding: 12px 40px 12px 12px;
    }
    
    .password-toggle {
        right: 12px;
        font-size: 16px;
    }
    
    .forgot-link-inline {
        font-size: 13px;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 14px;
        margin-top: 16px;
    }
    
    .signup-link {
        margin-top: 24px;
        padding-top: 24px;
    }
    
    .signup-link span,
    .signup-link a {
        font-size: 13px;
    }
    

    
    .field-error {
        font-size: 9px;
        margin-top: 3px;
    }
    
    .checkbox-container {
        gap: 6px;
    }
    
    .register-container .form-group:has(.checkbox-container) {
        margin-top: 10px;
    }
    
    .password-strength {
        margin-top: 3px;
    }
    
    .strength-bar {
        height: 2px;
        margin-bottom: 2px;
    }
    
    .strength-text {
        font-size: 8px;
    }
    
    .register-container .row {
        margin-bottom: 12px;
    }
    
    .register-container .logo-section {
        margin-bottom: 16px;
    }
    
    .register-container .logo-section img {
        max-width: 100px;
    }
    
    .register-container .btn-submit {
        padding: 10px;
        font-size: 13px;
        margin-top: 10px;
    }
    
    .register-container .signup-link {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .register-container .form-label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    body:has(.register-container) {
        padding: 8px 10px 32px 10px;
    }
}


/* ===== Password Reset Page Styles ===== */

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 24px;
}

.page-title {
    color: #e5e7eb;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

/* Back Link */
.back-link {
    color: #7db3e0 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.back-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-link:hover {
    color: #ffffff !important;
    background: rgba(90, 159, 212, 0.15);
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .page-title {
        font-size: 22px;
    }
    
    .page-header {
        margin-bottom: 20px;
    }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .page-header {
        margin-bottom: 18px;
    }
    
    .back-link {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* Responsive: Small Mobile */
@media (max-width: 360px) {
    .page-title {
        font-size: 18px;
    }
    
    .page-header {
        margin-bottom: 16px;
    }
}


/* ===== Register Page Styles ===== */

/* Register Container */
.register-container {
    max-width: 448px;
    padding: 0 8px;
}

/* Field Error Messages */
.field-error {
    display: block;
    color: #fca5a5;
    font-size: 11px;
    margin-top: 4px;
    min-height: 0;
    line-height: 1.3;
    font-weight: 500;
}

.field-error:empty {
    margin-top: 0;
    display: none;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 4px;
}

.strength-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 3px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar-fill.weak {
    width: 33%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.strength-bar-fill.medium {
    width: 66%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.strength-bar-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #34d399, #10b981);
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.strength-text.weak {
    color: #fca5a5;
}

.strength-text.medium {
    color: #fcd34d;
}

.strength-text.strong {
    color: #a7f3d0;
}

/* Input Validation States */
.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-input.success {
    border-color: #34d399;
}

.form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}



/* Form Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
}



.form-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #5a9fd4;
    flex-shrink: 0;
}

.checkbox-label {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.checkbox-label a {
    color: #7db3e0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .field-error {
        font-size: 10px;
        margin-top: 4px;
    }
    
    .password-strength {
        margin-top: 4px;
    }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .checkbox-label {
        font-size: 12px;
    }
    
    .form-checkbox {
        width: 15px;
        height: 15px;
    }
    
    .field-error {
        font-size: 10px;
        margin-top: 3px;
    }
    
    .password-strength {
        margin-top: 4px;
    }
    
    .strength-bar {
        margin-bottom: 3px;
        height: 2px;
    }
    
    .strength-text {
        font-size: 9px;
    }
}


/* ===== Modal Styles ===== */
.modal-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    background: rgba(90, 159, 212, 0.1);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: #7db3e0;
    font-size: 22px;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    color: #d1d5db;
    line-height: 1.6;
}

.modal-body h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
}

.modal-body h5 {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
}

.modal-body p {
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.modal-body strong {
    color: #ffffff;
    font-weight: 600;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.modal-body ul li {
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-body hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 24px 0;
}

.modal-body a {
    color: #7db3e0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-body a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

.modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #5a9fd4 0%, #4a8fc4 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(90, 159, 212, 0.3);
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #4a8fc4 0%, #3a7fb4 100%);
    box-shadow: 0 6px 16px rgba(90, 159, 212, 0.4);
    transform: translateY(-1px);
}

.btn-close {
    filter: invert(1);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* Modal Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

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

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(90, 159, 212, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 159, 212, 0.5);
}

/* Modal Backdrop */
.modal-backdrop.show {
    opacity: 0.7;
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-title i {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-body h4 {
        font-size: 16px;
    }
    
    .modal-body h5 {
        font-size: 15px;
    }
    
    .modal-body p,
    .modal-body ul li {
        font-size: 13px;
    }
    
    .modal-footer {
        padding: 12px 20px;
    }
    
    .modal-footer .btn-secondary,
    .modal-footer .btn-primary {
        padding: 8px 16px;
        font-size: 13px;
    }
}
