﻿/* TS Arena Kurulum Portalı - Login Page Styles */

:root {
    --ts-red: #c41e3a;
    --ts-blue: #1e88e5;
    --ts-dark-blue: #1565c0;
    --ts-light-gray: #f5f5f5;
    --ts-dark-gray: #333;
    --ts-gradient: linear-gradient(135deg, var(--ts-red) 0%, #d32f2f 100%);
}

body {
    margin: 0;
    padding: 0;
    background: var(--ts-gradient);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 0;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-header {
    background: var(--ts-gradient);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

    .login-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

    .login-header h1 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 700;
        position: relative;
        z-index: 1;
    }

    .login-header p {
        margin: 8px 0 0 0;
        font-size: 0.95rem;
        opacity: 0.9;
        position: relative;
        z-index: 1;
    }

.login-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    position: relative;
    z-index: 1;
}

    .login-logo i {
        font-size: 2rem;
        color: white;
    }

.login-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--ts-dark-gray);
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

    .form-control:focus {
        outline: none;
        border-color: var(--ts-blue);
        background-color: white;
        box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
    }

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
    z-index: 1;
}

.form-group.has-icon .form-control {
    position: relative;
}

.btn-login {
    background: var(--ts-gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.alert {
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-weight: 500;
    border: none;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

.alert-success {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
}

.alert-warning {
    background-color: #fff3e0;
    color: #e65100;
}

.loading-spinner {
    display: none;
    margin-right: 10px;
}

.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 2;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        border-radius: 15px;
    }

    .login-header {
        padding: 25px 20px;
    }

        .login-header h1 {
            font-size: 1.5rem;
        }

    .login-body {
        padding: 30px 25px;
    }

    .form-control {
        padding: 12px 15px;
        padding-left: 45px;
    }

    .input-icon {
        left: 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom validation styles */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
}
