/* =============================================
   MEDIACENTRAL - LOGIN PAGE STYLES
   Requires: shared.css
   ============================================= */

* {
    box-sizing: border-box;
}

/* ===== ADDITIONAL ANIMATIONS ===== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Renamed to avoid conflict with shared.css */
@keyframes floatLogin {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

/* ===== LOGIN CONTAINER ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Using brand variables */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::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 1000 1000" opacity="0.03"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    animation: floatLogin 20s ease-in-out infinite;
}

/* ===== LOGIN CARD ===== */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LOGIN HEADER ===== */
.login-header { text-align: center; margin-bottom: 40px; }
.login-logo { width: 80px; height: 80px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.login-logo img { width: 70px; height: 70px; }

.login-title {
    font-family: 'Daniel', cursive;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    font-family: var(--font-heading);
    color: var(--gray);
    font-size: 16px;
    text-align: center;
    margin: 0;
}

/* ===== LOGIN FORM ===== */
.login-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    margin: 0;
}

/* ===== INPUT WITH ICON ===== */
.input-with-icon { position: relative; }
.input-with-icon i {
    position: absolute;
    left: 18px; top: 50%; transform: translateY(-50%);
    color: var(--secondary); font-size: 18px;
}

.input-with-icon input {
    width: 100%;
    padding: 16px 18px 16px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition);
    background: linear-gradient(135deg, #fcfcfc 0%, #fff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-with-icon input:focus {
    outline: none; border-color: var(--secondary); background: white;
    box-shadow: 0 0 0 4px rgba(0, 172, 162, 0.12), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ===== LOGIN BUTTON ===== */
.login-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white; border: none; padding: 18px; border-radius: 12px;
    font-family: var(--font-heading); font-weight: 600; font-size: 16px;
    text-transform: uppercase; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 6px 20px rgba(96, 27, 80, 0.4); margin-top: 10px;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-3px); box-shadow: 0 10px 30px rgba(96, 27, 80, 0.4);
}
.login-btn:active { transform: translateY(-1px); }
.login-btn.loading { pointer-events: none; opacity: 0.8; }
.login-btn.loading i { animation: spin 1s linear infinite; }

/* ===== ERROR MESSAGE ===== */
.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #e74c3c; color: #721c24; padding: 12px 16px;
    border-radius: 8px; font-family: var(--font-heading); font-size: 14px;
    display: none; align-items: center; gap: 10px; margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}
.error-message.show { display: flex; }
.error-message i { font-size: 18px; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 480px) {
    .login-card { padding: 30px 25px; margin: 20px; }
    .login-title { font-size: 28px; }
    .login-logo { width: 60px; height: 60px; }
    .login-logo img { width: 50px; height: 50px; }
    .input-with-icon input { padding: 14px 16px 14px 45px; font-size: 15px; }
    .input-with-icon i { left: 15px; font-size: 16px; }
    .login-btn { padding: 16px; font-size: 15px; }
}
@media (max-width: 360px) {
    .login-card { padding: 25px 20px; }
    .login-title { font-size: 24px; }
    .login-subtitle { font-size: 14px; }
}