/* Authentication Pages CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #a8d8f0 0%, #b8e0f5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 15px 100px 15px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Floating shapes background */
.floating-shape {
    position: fixed;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 50%;
    right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    bottom: -100px;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 20%;
    right: 10%;
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(30px) translateX(20px);
    }
}

/* Code lines background */
.code-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.code-line {
    position: absolute;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 13px;
    color: rgba(102, 126, 234, 0.35);
    white-space: nowrap;
    animation: slideUp linear infinite;
    text-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
    font-weight: 500;
}

@keyframes slideUp {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* Sol taraf */
.code-line:nth-child(1) { left: 1%; top: 10%; animation-duration: 18s; animation-delay: 0s; }
.code-line:nth-child(2) { left: 3%; top: 25%; animation-duration: 22s; animation-delay: 1s; }
.code-line:nth-child(3) { left: 2%; top: 45%; animation-duration: 20s; animation-delay: 2s; }
.code-line:nth-child(4) { left: 4%; top: 65%; animation-duration: 19s; animation-delay: 3s; }
.code-line:nth-child(5) { left: 1%; top: 80%; animation-duration: 21s; animation-delay: 1.5s; }

/* Sağ taraf */
.code-line:nth-child(6) { right: 2%; top: 15%; left: auto; animation-duration: 23s; animation-delay: 2.5s; }
.code-line:nth-child(7) { right: 3%; top: 35%; left: auto; animation-duration: 20s; animation-delay: 0.5s; }
.code-line:nth-child(8) { right: 1%; top: 55%; left: auto; animation-duration: 19s; animation-delay: 3.5s; }
.code-line:nth-child(9) { right: 4%; top: 75%; left: auto; animation-duration: 22s; animation-delay: 1.5s; }

/* Orta */
.code-line:nth-child(10) { left: 25%; top: 20%; animation-duration: 21s; animation-delay: 2s; }
.code-line:nth-child(11) { left: 50%; top: 40%; animation-duration: 20s; animation-delay: 3s; }
.code-line:nth-child(12) { left: 70%; top: 60%; animation-duration: 23s; animation-delay: 0.5s; }

/* Alt taraf */
.code-line:nth-child(13) { left: 10%; bottom: 5%; top: auto; animation-duration: 19s; animation-delay: 2.5s; }
.code-line:nth-child(14) { left: 40%; bottom: 3%; top: auto; animation-duration: 21s; animation-delay: 1s; }
.code-line:nth-child(15) { left: 75%; bottom: 4%; top: auto; animation-duration: 20s; animation-delay: 3.5s; }

/* Login Form Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Left Side - Branding */
.login-branding {
    color: #2c3e50;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-branding h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-branding p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

.feature-item i {
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

/* Right Side - Login Form */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 25px;
    text-align: center;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.login-header-icon {
    font-size: 40px;
    margin-bottom: 8px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.login-body {
    padding: 35px 30px;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideDown 0.4s ease-out;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffa502 0%, #ff8c00 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.alert strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.remaining-attempts {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    opacity: 0.95;
}

/* Form Group */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #667eea;
    font-size: 17px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 13px 16px 13px 48px;
    border: 2px solid #e8eef5;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f7 100%);
    color: #2c3e50;
    font-weight: 500;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.08), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-control:focus + .input-icon {
    color: #764ba2;
    transform: scale(1.1);
}

.form-control::placeholder {
    color: #a8b5c8;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.form-check:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.form-check-input:hover {
    transform: scale(1.1);
}

.form-check-input:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.form-check-label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    user-select: none;
}

/* Submit Button */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
}

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

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Footer Links */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid #f0f2f7;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
}

.login-footer a:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.08);
    gap: 10px;
}

/* Copyright */
.copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px 20px;
    color: #666;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.copyright a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-branding {
        display: none;
    }

    .login-container {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-header-icon {
        font-size: 45px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .login-body {
        padding: 25px 20px;
    }

    .form-control {
        padding: 11px 12px 11px 40px;
        font-size: 16px;
    }

    .btn-login {
        padding: 12px;
        font-size: 15px;
    }

    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }

    .alert i {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .login-header h2 {
        font-size: 20px;
    }

    .login-header p {
        font-size: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-control {
        font-size: 15px;
    }
}

/* Verify 2FA Styles */
.verify-container {
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Verify 2FA Form Group Override */
.verify-container .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.verify-container .form-group p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.verify-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.verify-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 45px 35px;
    text-align: center;
    position: relative;
}



.verify-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.verify-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.verify-body {
    padding: 45px 40px;
}

.code-input {
    width: 100%;
    padding: 18px;
    font-size: 32px;
    letter-spacing: 12px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #e8e8f0;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.code-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.code-input::placeholder {
    color: #ccc;
    letter-spacing: 8px;
}

.form-help-text {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.btn-verify {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-verify::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-verify:hover::before {
    left: 100%;
}

.btn-verify:active {
    transform: translateY(0);
}

.verify-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.verify-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.verify-footer a:hover {
    color: #764ba2;
    gap: 10px;
}

.timer {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #999;
}

.timer i {
    color: #667eea;
    margin-right: 5px;
}

/* Verify 2FA Responsive */
@media (max-width: 576px) {
    .verify-header {
        padding: 30px 20px;
    }

    .verify-header-icon {
        font-size: 45px;
    }

    .verify-header h2 {
        font-size: 22px;
    }

    .verify-body {
        padding: 25px 20px;
    }

    .code-input {
        font-size: 28px;
        letter-spacing: 10px;
        padding: 14px;
    }

    .btn-verify {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .verify-header h2 {
        font-size: 20px;
    }

    .verify-header p {
        font-size: 12px;
    }

    .code-input {
        font-size: 24px;
        letter-spacing: 8px;
    }
}

