/* resources/css/auth/sign-in.css */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* ============= BACKGROUND SETTINGS ============= */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Default fallback background */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============= MAIN CONTAINER ============= */
.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    width: 400px;
    max-width: 90vw;
    z-index: 10;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff9a56, #4169e1, #ff9a56);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.logo-section {
    margin-bottom: 30px;
}

.logo-img {
    max-width: 200px;
    max-height: 140px;
    width: auto;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.welcome-text {
    color: white;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.login-form {
    width: 100%;
}

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

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ff9a56;
    box-shadow: 0 0 20px rgba(255, 154, 86, 0.3);
    transform: scale(1.02);
}

.form-input.error {
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.remember-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 30px;
    color: white;
    font-size: 14px;
}

.remember-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #ff9a56;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff9a56, #ffad56);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 154, 86, 0.3);
    margin-bottom: 25px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 154, 86, 0.4);
}

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

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.forgot-password:hover {
    color: #ff9a56;
    text-decoration: underline;
}

.alert {
    padding: 10px 15px;
    border-radius: 15px;
    margin-top: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

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

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .logo-img {
        max-width: 160px;
        max-height: 110px;
    }
    
    .welcome-text {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .form-input {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 16px;
    }
}