/* Landing Page Styles */
body.landing-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.background-logos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.logo-element {
    position: absolute;
    opacity: 0.15;
    transition: all 3s ease-in-out;
    animation: float 6s ease-in-out infinite;
}

.logo-element:nth-child(1) {
    top: 10%;
    left: 15%;
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.logo-element:nth-child(2) {
    top: 15%;
    right: 20%;
    width: 180px;
    height: 180px;
    animation-delay: 1.5s;
}

.logo-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 220px;
    height: 220px;
    animation-delay: 3s;
}

.logo-element:nth-child(4) {
    bottom: 15%;
    right: 15%;
    width: 190px;
    height: 190px;
    animation-delay: 4.5s;
}

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

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    height: 55px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 1);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 10;
    padding: 5px;
    margin-top: 12px;
}

.password-toggle:hover {
    color: #667eea;
}

.password-toggle i {
    pointer-events: none;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

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

.remember-me {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.remember-me input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.remember-me label {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.error-summary {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #dc3545;
}

.field-loginform-username .invalid-feedback,
.field-loginform-password .invalid-feedback {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 14px;
}

.demo-credentials {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #856404;
}

.demo-credentials strong {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 992px) {
    .landing-container {
        padding: 20px 15px;
    }
    
    .login-card {
        max-width: 400px;
        padding: 35px 30px;
    }
    
    .login-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 15px 10px;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .login-card {
        padding: 30px 25px;
        margin: 10px 0;
        max-width: 90%;
        width: 100%;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .login-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control {
        height: 52px;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .btn-login {
        height: 52px;
        font-size: 16px;
        border-radius: 10px;
        letter-spacing: 0.5px;
    }
    
    .password-toggle {
        right: 18px;
        margin-top: 10px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .demo-credentials {
        font-size: 13px;
        padding: 12px;
        margin-top: 15px;
    }
    
    .remember-me {
        margin: 15px 0;
    }
    
    .remember-me input[type="checkbox"] {
        transform: scale(1.1);
    }
    
    .remember-me label {
        font-size: 13px;
    }
    
    /* Background logos for tablet */
    .logo-element {
        opacity: 0.08;
    }
    
    .logo-element:nth-child(1) {
        width: 140px;
        height: 140px;
        top: 8%;
        left: 8%;
    }
    
    .logo-element:nth-child(2) {
        width: 120px;
        height: 120px;
        top: 12%;
        right: 12%;
    }
    
    .logo-element:nth-child(3) {
        width: 150px;
        height: 150px;
        bottom: 18%;
        left: 12%;
    }
    
    .logo-element:nth-child(4) {
        width: 130px;
        height: 130px;
        bottom: 12%;
        right: 8%;
    }
}

@media (max-width: 480px) {
    body.landing-page {
        font-size: 14px;
    }
    
    .landing-container {
        padding: 15px 8px;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
    .login-card {
        padding: 25px 20px;
        border-radius: 12px;
        margin: 5px 0;
        max-width: 95%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .login-title {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-control {
        height: 48px;
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .btn-login {
        height: 48px;
        font-size: 15px;
        border-radius: 8px;
        letter-spacing: 0.3px;
    }
    
    .password-toggle {
        right: 15px;
        margin-top: 8px;
        font-size: 15px;
    }
    
    .form-label {
        font-size: 12px;
        margin-bottom: 5px;
        letter-spacing: 0.3px;
    }
    
    .demo-credentials {
        font-size: 12px;
        padding: 10px;
        margin-top: 12px;
        border-radius: 6px;
    }
    
    .remember-me {
        margin: 12px 0;
    }
    
    .remember-me input[type="checkbox"] {
        transform: scale(1.0);
        margin-right: 8px;
    }
    
    .remember-me label {
        font-size: 12px;
    }
    
    .error-summary {
        padding: 12px;
        font-size: 13px;
        margin-bottom: 15px;
        border-radius: 6px;
    }
    
    /* Background logos for mobile */
    .logo-element {
        opacity: 0.06;
    }
    
    .logo-element:nth-child(1) {
        width: 100px;
        height: 100px;
        top: 5%;
        left: 5%;
    }
    
    .logo-element:nth-child(2) {
        width: 85px;
        height: 85px;
        top: 8%;
        right: 8%;
    }
    
    .logo-element:nth-child(3) {
        width: 110px;
        height: 110px;
        bottom: 12%;
        left: 8%;
    }
    
    .logo-element:nth-child(4) {
        width: 95px;
        height: 95px;
        bottom: 8%;
        right: 5%;
    }
}

@media (max-width: 360px) {
    .landing-container {
        padding: 15px 5px;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
    .login-card {
        padding: 20px 15px;
        margin: 3px 0;
        max-width: 98%;
    }
    
    .login-title {
        font-size: 1.4rem;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
    }
    
    .form-control {
        height: 45px;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .btn-login {
        height: 45px;
        font-size: 14px;
    }
    
    .password-toggle {
        right: 12px;
        font-size: 14px;
    }
    
    .demo-credentials {
        font-size: 11px;
        padding: 8px;
    }
}

/* Animation for page load */
.login-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for button */
.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
