/* Login Page Styles - Inovee Management System */

body {
    background: linear-gradient(-45deg, #667eea, #764ba2, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

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

.login-container {
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.2);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.login-card:hover {
    box-shadow: 
        0 35px 70px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.3);
}

.login-card:hover::before {
    transform: scale(1.05);
}

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

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
    animation: float-header 6s ease-in-out infinite;
}

@keyframes float-header {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.login-header .logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.login-header .logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    animation: rotate-icon 4s linear infinite;
}

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

.login-header h3 {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-header p {
    position: relative;
    z-index: 2;
    opacity: 0.9;
    font-weight: 500;
    font-size: 1rem;
}

.login-body {
    padding: 3rem 2.5rem;
    position: relative;
}

.form-floating {
    position: relative;
    margin-bottom: 2rem;
}

.form-floating .form-control {
    height: 60px;
    padding: 1.2rem 1rem 0.4rem 3.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #333;
}

.form-floating .form-control:focus {
    border-color: #667eea;
    box-shadow: 
        0 0 0 0.2rem rgba(102, 126, 234, 0.2),
        0 8px 25px rgba(102, 126, 234, 0.15);
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.form-floating label {
    padding: 1.2rem 1rem 0.4rem 3.5rem;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent !important;
}

.form-floating label::before,
.form-floating label::after {
    display: none !important;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.2rem;
    z-index: 3;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus + label,
.form-floating .form-control:not(:placeholder-shown) + label {
    opacity: 0.9;
    transform: scale(0.85) translateY(-0.7rem) translateX(0.15rem);
    color: #667eea;
    background: transparent !important;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    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.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

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

.btn-login:active {
    transform: translateY(-1px);
}

.alert-custom {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    color: #721c24;
    backdrop-filter: blur(10px);
}

.back-link {
    background: rgba(108, 117, 125, 0.15);
    border: 1px solid rgba(108, 117, 125, 0.3);
    border-radius: 15px;
    padding: 1rem 2rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-weight: 500;
    width: 100%;
    height: 60px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.back-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 117, 125, 0.1), transparent);
    transition: left 0.5s;
}

.back-link:hover {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.back-link:hover::before {
    left: 100%;
}

/* Responsywność */
@media (max-width: 768px) {
    .login-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .login-header .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem;
    }
    
    .form-floating .form-control {
        height: 55px;
        padding: 1rem 1rem 0.4rem 3rem;
    }
    
    .form-floating label {
        padding: 1rem 1rem 0.4rem 3rem;
    }
    
    .input-icon {
        left: 1rem;
    }
}
