:root {
    --primary-color: #dc3545;
    --primary-hover: #c82333;
    --primary-light: #f5c6cb;
    --primary-gradient: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    --primary-gradient-hover: linear-gradient(135deg, #c82333 0%, #a02532 100%);
    --sidebar-bg: linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
    --sidebar-active: rgba(220, 53, 69, 0.1);
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --text-light: #ffffff;
    --text-dark: #797979;
    --text-muted: #6c757d;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(220, 53, 69, 0.15);
    --border-color: #e9ecef;
    --border-radius: 16px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --fontBold: 'poppins-bold';
    --fontRegular: 'poppins-regular';
    --fontMedium: 'poppins-demi';
}

@font-face {
    font-family: 'poppins-bold';
    src: url('../fonts/poppins-bold.ttf') format('opentype');
}

@font-face {
    font-family: 'poppins-regular';
    src: url('../fonts/poppins-light.ttf') format('opentype');
}

@font-face {
    font-family: 'poppins-demi';
    src: url('../fonts/poppins-semibold.ttf') format('opentype');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--fontRegular);
    line-height: 1.6;
    color: #333;
    height: 100%;
    overflow-x: hidden;
}

/* Login Page Styles */
.login-page {
    height: 100vh;
    overflow: hidden;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y:auto;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    min-height: 450px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Side - Form */
.login-left {
    flex: 1;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.header-top {
    margin-bottom: 20px;
}

.ministry-text {
    color: #dc3545;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.system-title {
    margin: 0;
    text-align: center;
}

.system-name {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.2;
}

.welcome-text {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: #6c757d;
}

/* Form Styles */
.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.input-wrapper.focused {
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-wrapper.focused .input-icon {
    color: #dc3545;
}

.form-control {
    width: 100%;
    height: 56px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 0 16px 0 50px;
    font-size: 16px;
    font-weight: 500;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #dc3545;
    background: white;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.password-toggle:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.btn-login, .btn-verify {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover, .btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.3);
}

.btn-login:active, .btn-verify:active {
    transform: translateY(0);
}

.btn-icon {
    transition: all 0.3s ease;
}

.btn-login:hover .btn-icon, .btn-verify:hover .btn-icon {
    transform: translateX(4px);
}

.validation-message {
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    display: block;
}

.form-footer {
    margin-top: 24px;
    text-align: center;
}

.forgot-password {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.forgot-password:hover {
    color: #dc3545;
}

.register-link {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.register-link p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.register-text {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-text:hover {
    color: #c82333;
}

/* Right Side - Logo */
.login-right {
    flex: 1;
    background: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
}

.logo-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Ministry logo styles */
.ministry-logo {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    background: white;
    border-radius: 10rem;
}

/* Two Factor Specific Styles */
.two-factor-info {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.info-icon {
    color: #dc3545;
    font-size: 28px;
    margin-bottom: 12px;
}

.two-factor-info p {
    color: #495057;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.two-factor-info small {
    color: #6c757d;
    font-size: 14px;
}

.verification-code-container {
    margin-bottom: 24px;
}

.code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.code-input {
    width: 56px;
    height: 64px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.code-input:focus {
    border-color: #dc3545;
    background: white;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    transform: scale(1.05);
}

.resend-code {
    margin-top: 24px;
}

.resend-code p {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.resend-btn {
    background: none;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resend-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.back-to-login {
    margin-top: 24px;
    text-align: center;
}

.back-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: #dc3545;
}

.back-link i {
    transition: all 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* Validation Summary */
.validation-summary-errors {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary-errors li {
    color: #dc3545;
    font-weight: 500;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        min-height: auto;
        max-width: 400px;
        position: absolute;
        top: 0;
        border-radius:unset;
    }
    
    .login-left {
        padding: 30px 25px;
    }
    
    .login-right {
        padding: 30px 25px;
        order: -1;
    }
    .login-header {
        margin-bottom: 10px;
    }
    .header-top {
        margin-bottom: 10px;
    }
    .ministry-logo {
        width: 90px;
        height: 90px;
    }
    
    .system-name {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .code-inputs {
        gap: 8px;
    }
    
    .code-input {
        width: 48px;
        height: 56px;
        font-size: 20px;
    }
    .register-link{
        margin-top:10px;
    }
}

@media (max-width: 480px) {
    .login-background {
        padding: 10px;
    }
    
    .login-left {
        padding: 10px 20px;
    }
    
    .login-right {
        padding: 25px 20px;
    }
    
    .system-name {
        font-size: 20px;
    }
    
    .form-control {
        height: 52px;
        font-size: 14px;
    }
    
    .btn-login, .btn-verify {
        height: 52px;
        font-size: 14px;
    }
}

/* Focus and Hover Effects */
.form-control:focus + .input-icon {
    color: #dc3545;
}

.btn-login:focus, .btn-verify:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25);
}

/* Loading Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

input, button, a {
    transition: all 0.3s ease;
}

/* Home Page Styles */
.home-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: var(--fontRegular);
}

.home-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.2);
}

.home-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.home-title {
    text-align: center;
    margin-bottom: 40px;
}

.home-title h2 {
    color: #2c3e50;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.home-title p {
    color: #6c757d;
    font-size: 16px;
    font-weight: 400;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(220, 53, 69, 0.15);
}

.project-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
}

.project-title {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.project-description {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 48px;
}

.project-dates {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 14px;
    color: #adb5bd;
}

.project-date-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-date-item i {
    color: #dc3545;
}

.btn-project {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.3);
    color: white;
}

.btn-project:active {
    transform: translateY(0);
}

.btn-project i {
    transition: all 0.3s ease;
}

.btn-project:hover i {
    transform: translateX(4px);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    color: #dc3545;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    font-size: 16px;
    color: #6c757d;
}

/* Responsive Design for Home Page */
@media (max-width: 768px) {
    .home-header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .home-title h2 {
        font-size: 28px;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-dates {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .home-header {
        padding: 15px 0;
    }
    
    .home-title h2 {
        font-size: 24px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-title {
        font-size: 20px;
    }
    
    .project-description {
        font-size: 14px;
    }
    
    .btn-project {
        height: 44px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .login-background {
        background: white;
    }
    
    .login-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Timer Styles */
.timer-container {
    margin-bottom: 20px;
    text-align: center;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.timer-display.warning {
    animation: pulse 2s infinite;
}

.timer-display.danger {
    animation: shake 0.5s infinite;
}

.timer-icon {
    font-size: 18px;
    color: #6c757d;
    margin-right: 10px;
}

.timer-display.warning .timer-icon {
    color: #856404;
}

.timer-display.danger .timer-icon {
    color: #721c24;
}

.timer-text {
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    margin-right: 8px;
}

.timer-display.warning .timer-text {
    color: #856404;
}

.timer-display.danger .timer-text {
    color: #721c24;
}

.timer-countdown {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    font-family: var(--fontRegular);
    padding: 4px 12px;
    min-width: 65px;
    text-align: center;
}

.timer-display.warning .timer-countdown {
    color: #856404;
}

.timer-display.danger .timer-countdown {
    color: #721c24;
}

.timer-expired {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 12px;
    color: #721c24;
    font-weight: 600;
    font-size: 16px;
    animation: slideInFromTop 0.5s ease-out;
}

.timer-expired i {
    font-size: 18px;
    margin-right: 10px;
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    80% {
        transform: translateY(-2px);
    }
}

/* Responsive Timer */
@media (max-width: 768px) {
    .timer-display,
    .timer-expired {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .timer-countdown {
        font-size: 18px;
        padding: 3px 10px;
    }
    
    .timer-icon {
        font-size: 16px;
    }
}

/* Hata Mesajı Tasarımı */
.error-message-container {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.2);
    animation: slideDown 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.error-message-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ee5a52, #ff6b6b);
    animation: shimmer 2s infinite;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.error-header i {
    font-size: 20px;
    color: #ffeb3b;
    animation: pulse 2s infinite;
}

.error-content {
    color: white;
}

.error-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border-left: 3px solid #ffeb3b;
}

.error-item:last-child {
    margin-bottom: 0;
}

.error-item i {
    color: #ffeb3b;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.error-item span {
    font-size: 14px;
    line-height: 1.4;
    color: white;
}

/* Hata mesajı animasyonları */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .error-message-container {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .error-header {
        font-size: 14px;
    }
    
    .error-item {
        padding: 6px 10px;
    }
    
    .error-item span {
        font-size: 13px;
    }
}