/* Modern Login CSS - Temiz ve Güzel Tasarım */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-image: url('../images/backgraund_logo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

.modern-login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Floating Shapes - Subtle Animation */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.corporate-shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.corporate-shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.corporate-shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.corporate-shape-4 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.corporate-shape-5 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Login Container */
.login-container {
    background: rgba(220, 53, 69, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    z-index: 10;
    position: relative;
    margin-bottom: 30px;
    animation: slideInDown 0.8s ease-out;
    transform-origin: center top;
}

@keyframes slideInDown {
    0% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(0.95);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.login-card {
    width: 100%;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.login-logo {
    max-width: 120px;
    height: auto;
}

.login-title {
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #fff;
    font-size: 14px;
    font-weight: 300;
}

/* Form Styles */
.modern-form {
    width: 100%;
}

.form-group-modern {
    margin-bottom: 25px;
    animation: fadeInLeft 0.6s ease-out both;
}

.form-group-modern:nth-child(1) { animation-delay: 0.4s; }
.form-group-modern:nth-child(2) { animation-delay: 0.5s; }

@keyframes fadeInLeft {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    z-index: 2;
}

.modern-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-input::placeholder {
    color: #999;
    font-weight: 300;
}

/* Login Button */
.modern-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: bounceIn 0.8s ease-out 0.6s both;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.4);
}

.modern-btn:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Pages Section */
.modern-pages-section {
    width: 100%;
    max-width: 800px;
    z-index: 10;
    position: relative;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.pages-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
}

.modern-page-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.05);
    animation: slideInFromBottom 0.6s ease-out both;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: fit-content;
    min-width: auto;
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Sıralı animasyon için her butona farklı gecikme */
.modern-page-btn:nth-child(1) { animation-delay: 0.5s; }
.modern-page-btn:nth-child(2) { animation-delay: 0.6s; }
.modern-page-btn:nth-child(3) { animation-delay: 0.7s; }
.modern-page-btn:nth-child(4) { animation-delay: 0.8s; }
.modern-page-btn:nth-child(5) { animation-delay: 0.9s; }
.modern-page-btn:nth-child(6) { animation-delay: 1.0s; }
.modern-page-btn:nth-child(7) { animation-delay: 1.1s; }

.modern-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.modern-page-btn:hover::before {
    left: 100%;
}

.modern-page-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(90, 103, 216, 0.9) 100%);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 15px 30px rgba(102, 126, 234, 0.25), 
        0 8px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: #ffffff;
    border-color: rgba(102, 126, 234, 0.4);
}

.modern-page-btn:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.modern-page-btn i {
    margin-right: 10px;
    font-size: 14px;
    color: #667eea;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.modern-page-btn:hover i {
    color: #ffffff;
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-login-wrapper {
        padding: 15px;
        justify-content: flex-start;
        padding-top: 50px;
    }
    
    .login-container {
        padding: 30px 25px;
        margin-bottom: 25px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .pages-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 10px;
    }
    
    .modern-page-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: fit-content;
        max-width: 90%;
    }
    
    .floating-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .login-title {
        font-size: 22px;
    }
    
    .modern-input {
        padding: 12px 12px 12px 40px;
        font-size: 15px;
    }
    
    .input-icon {
        left: 12px;
        font-size: 14px;
    }
    
    .modern-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .pages-container {
        padding: 0 5px;
    }
    
    .modern-page-btn {
        padding: 10px 18px;
        font-size: 13px;
        width: fit-content;
        max-width: 95%;
    }
    
    .modern-page-btn i {
        margin-right: 8px;
        font-size: 13px;
    }
}

/* Modal Blur Effect */
.modal-backdrop {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Enhanced Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 15px 15px;
}