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

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #ec4899;
    --dark: #1e293b;
    --light: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
}

body {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Paw Pattern Background */
.paw-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.paw {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(102, 126, 234, 0.15);
    opacity: 0.3;
    animation: pawFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.paw:nth-child(1) { top: 10%; left: 3%; animation-delay: 0s; animation-duration: 7s; }
.paw:nth-child(2) { top: 16%; left: 22%; animation-delay: 1s; animation-duration: 9s; }
.paw:nth-child(3) { top: 25%; left: 50%; animation-delay: 2s; animation-duration: 8s; }
.paw:nth-child(4) { top: 20%; left: 70%; animation-delay: 3s; animation-duration: 10s; }
.paw:nth-child(5) { top: 30%; left: 85%; animation-delay: 4s; animation-duration: 7.5s; }
.paw:nth-child(6) { top: 45%; left: 20%; animation-delay: 0.5s; animation-duration: 8.5s; }
.paw:nth-child(7) { top: 50%; left: 40%; animation-delay: 1.5s; animation-duration: 9.5s; }
.paw:nth-child(8) { top: 55%; left: 65%; animation-delay: 2.5s; animation-duration: 7s; }
.paw:nth-child(9) { top: 60%; left: 90%; animation-delay: 3.5s; animation-duration: 8s; }
.paw:nth-child(10) { top: 70%; left: 25%; animation-delay: 4.5s; animation-duration: 9s; }
.paw:nth-child(11) { top: 75%; left: 55%; animation-delay: 0.8s; animation-duration: 10s; }
.paw:nth-child(12) { top: 80%; left: 80%; animation-delay: 1.8s; animation-duration: 7.5s; }

@keyframes pawFloat {
    0%, 100% { 
        opacity: 0.2;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.35;
        transform: translateY(-20px) scale(1.1) rotate(10deg);
    }
    50% { 
        opacity: 0.4;
        transform: translateY(-10px) scale(1.15) rotate(-10deg);
    }
    75% {
        opacity: 0.3;
        transform: translateY(-15px) scale(1.05) rotate(5deg);
    }
}

/* Login Container - Terminal Style */
.login-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: slideUp 0.6s ease;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
}

/* Terminal Header with Traffic Lights */
.terminal-header {
    background: #f8f8f8;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.terminal-traffic-lights {
    display: flex;
    gap: 0.5rem;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.traffic-light.red {
    background: #ff5f56;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.traffic-light.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.traffic-light.green {
    background: #27c93f;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.terminal-title {
    color: #666;
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: auto;
    user-select: none;
}

.terminal-badge {
    display: none; /* Terminal'de badge yok */
}

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


/* Form Content - Terminal Style */
.form-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    background: #ffffff;
    min-height: 400px;
}

.terminal-output {
    color: #333333;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.terminal-prompt {
    color: #667eea;
    display: inline-block;
    margin-right: 0.5rem;
}

.terminal-command {
    color: #764ba2;
}

.terminal-input-line {
    display: none; /* Başlangıçta gizli, JavaScript ile gösterilecek */
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.terminal-input-line.show {
    display: flex;
}

.terminal-input-line .terminal-prompt {
    color: #667eea;
    user-select: none;
    flex-shrink: 0;
}

.terminal-input-line input {
    background: transparent;
    border: none;
    color: #333333;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    outline: none;
    flex: 1;
    padding: 0.25rem 0;
    caret-color: #667eea;
}

.terminal-input-line input::placeholder {
    color: #999;
}

.terminal-input-line input:focus {
    outline: none;
}

.terminal-input-line input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-title {
    display: none; /* Terminal'de başlık yok */
}

#typedText {
    display: inline-block;
    color: #1a1a2e;
}

/* Typed.js cursor için light mode terminal stili */
.terminal-badge .typed-cursor {
    color: #667eea !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

/* Form Groups - Terminal Style */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    display: none; /* Terminal'de normal form grupları gizli */
}

.form-group.active {
    display: block;
}

.form-label {
    display: none; /* Terminal'de label yok */
}

.form-label i {
    display: none;
}

.input-wrapper {
    position: relative;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

/* Terminal input style */
.terminal-input-line .form-input {
    padding: 0.5rem 0;
    padding-left: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #333333;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

/* Browser native autocomplete'ı gizle */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #333333 !important;
}

input:-webkit-autofill {
    background-color: #ffffff !important;
}

/* Password input için özel padding */
#password {
    padding-right: 3.5rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-icon {
    display: none; /* Terminal'de icon yok */
}

.terminal-input-line .input-icon {
    display: none;
}

/* Password input için özel stil - toggle butonu için yer bırak */
.input-wrapper #password {
    padding-right: 3.5rem !important;
}

/* Email Autocomplete Dropdown - Terminal Style */
.email-autocomplete-wrapper {
    position: relative;
    z-index: 10;
    flex: 1;
}

.email-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 99999 !important;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.email-suggestions-dropdown.show {
    display: block;
}

.email-suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.email-suggestions-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.email-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.email-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.email-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #333333;
    font-size: 0.85rem;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.email-suggestion-item:first-child {
    border-radius: 4px 4px 0 0;
}

.email-suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 4px 4px;
}

.email-suggestion-item:only-child {
    border-radius: 4px;
}

.email-suggestion-item:hover {
    background: #f8f9ff;
    color: #667eea;
    padding-left: 1.25rem;
}

.email-suggestion-item.selected {
    background: #f8f9ff;
    color: #667eea;
    font-weight: 500;
}

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

.password-toggle {
    display: none; /* Terminal'de password toggle yok */
}

/* Buttons - Terminal'de buton yok, Enter ile submit */
.btn {
    display: none; /* Terminal'de buton yok */
}

.btn-login {
    display: none;
}

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

/* Alert Messages - Modern Toast Style */
#alertBox {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 420px;
}

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease-out;
    opacity: 1;
    transition: all 0.3s ease-out;
    min-width: 320px;
}

.alert.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alert-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.alert-message {
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

.alert-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.alert-error {
    background: #dc3545;
    color: #ffffff;
}

.alert-error .alert-icon {
    background: rgba(255, 255, 255, 0.2);
}

.alert-success {
    background: #28a745;
    color: #ffffff;
}

.alert-success .alert-icon {
    background: rgba(255, 255, 255, 0.2);
}

.alert-warning {
    background: #ffc107;
    color: #212529;
}

.alert-warning .alert-icon {
    background: rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: #17a2b8;
    color: #ffffff;
}

.alert-info .alert-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .form-content {
        padding: 2rem 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }
    
    #alertBox {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .alert {
        min-width: auto;
        padding: 1rem 1.25rem;
    }
    
    .alert-title {
        font-size: 0.95rem;
    }
    
    .alert-message {
        font-size: 0.8rem;
    }
    
    .alert-icon {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
}
