/* ============================================
   Bolu Abant İzzet Baysal Üniversitesi
   E-posta Şifre Sıfırlama Sistemi
   Modern Beyaz Tema - Bootstrap 5
   ============================================ */

/* Genel Stil Ayarları */
:root {
    --primary-color: #0066CC;
    --primary-dark: #0052A3;
    --primary-light: #E6F2FF;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --text-color: #212529;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Section */
.header-section {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 2rem 0;
}

.logo-container {
    gap: 2rem;
}

.header-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.header-logo:hover {
    transform: scale(1.05);
}

.logo-1 {
    max-height: 90px;
}

.logo-2 {
    max-height: 75px;
}

/* Microsoft ve Teams logoları - küçük ve optimize, aspect ratio korunuyor */
.header-brand-logo {
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--transition);
}

.header-brand-logo-microsoft {
    max-height: 42px;
}

.header-brand-logo-teams {
    max-height: 58px;
}

.header-brand-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.header-logo-left,
.header-logo-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-logo-center {
    flex: 1 1 auto;
    min-width: 0;
}

.header-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #0d6efd);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 300px);
}

.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
}

.card-body {
    background: var(--white);
}

/* Step Management */
.step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.step.active {
    display: block;
}

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

.step-icon {
    color: var(--primary-color);
}

/* Form Stilleri */
.form-label {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
    outline: none;
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
}

.form-control:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

.input-group-text {
    border: 2px solid var(--border-color);
    border-right: none;
    background: var(--white);
    color: var(--text-muted);
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: 2px solid var(--primary-color);
}

/* Butonlar */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline-secondary:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Şifre Gereksinimleri */
.alert {
    border-radius: var(--border-radius);
    background: var(--bg-light);
}

.requirement {
    display: flex;
    align-items: center;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.requirement-met {
    color: var(--success-color);
}

.requirement-met .check-icon {
    color: var(--success-color) !important;
}

.requirement:not(.requirement-met) {
    color: var(--text-muted);
}

.check-icon {
    font-size: 1.1rem;
    transition: var(--transition);
}

/* Başarı Sayfası */
.success-step {
    padding: 2rem 0;
}

.success-icon-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s ease-out;
}

.success-icon-circle i {
    font-size: 4rem;
    color: var(--white);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hata Mesajları */
.error-message {
    min-height: 1.5rem;
    font-size: 0.875rem;
    display: block;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Loading State */
.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: inline-flex !important;
    align-items: center;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Server Warning */
.server-warning {
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid var(--warning-color) !important;
}

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

/* Footer */
.footer-section {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .header-logo {
        max-height: 60px;
    }
    
    .logo-1 {
        max-height: 70px;
    }
    
    .logo-2 {
        max-height: 50px;
    }
    
    .header-brand-logo-microsoft {
        max-height: 35px;
    }
    
    .header-brand-logo-teams {
        max-height: 48px;
    }
    
    .logo-2 {
        max-height: 65px;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .logo-container {
        gap: 1rem;
    }
    
    .success-icon-circle {
        width: 100px;
        height: 100px;
    }
    
    .success-icon-circle i {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 1.25rem;
    }
    
    .header-section {
        padding: 1.5rem 0;
    }
    
    .header-logo {
        max-height: 50px;
    }
    
    .logo-1 {
        max-height: 60px;
    }
    
    .logo-2 {
        max-height: 45px;
    }
    
    .header-brand-logo-microsoft {
        max-height: 17px;
    }
    
    .header-brand-logo-teams {
        max-height: 34px;
    }
    
    .logo-2 {
        max-height: 55px;
    }
    
    /* Mobilde logo1 ve logo2'yi tam ortala */
    .header-logo-center {
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        flex: 1 1 100% !important;
    }
    
    /* Mobilde sol ve sağ logoları daha küçük yap ki merkez logolar tam ortada olsun */
    .header-logo-left,
    .header-logo-right {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* Mobilde header container'ı düzenle - logolar yan yana kalsın */
    .header-section .d-flex.justify-content-between {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    
    .header-section .d-flex.justify-content-between > .header-logo-center {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    
    .header-section .d-flex.justify-content-between > .header-logo-left {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }
    
    .header-section .d-flex.justify-content-between > .header-logo-right {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-control-lg {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .header-section,
    .footer-section,
    .btn {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* OTP Progress Bar Animation */
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

.progress {
    overflow: hidden;
    background-color: #e9ecef;
    border-radius: 0.5rem;
}

.progress-bar {
    transition: width 0.1s linear, background-color 0.3s ease;
}

/* Modal Styles */
.modal.show {
    display: block !important;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal.show .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal.show .modal-dialog {
    position: relative;
    z-index: 1050;
}

/* KVKK / Aydınlatma checkbox'ları: onay verilmediğinde kırmızı yanıp sönen çerçeve */
@keyframes checkbox-blink {
    0%, 100% { border: 2px solid #dc3545; box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.4); }
    50%      { border: 2px solid rgba(220, 53, 69, 0.25); box-shadow: none; }
}
.form-check.checkbox-blink-error {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    animation: checkbox-blink 0.8s ease-in-out infinite;
}
.form-check.checkbox-blink-error .form-check-input {
    margin-top: 0.15rem;
}
