:root {
    --primary: #3a6ea5;
    --secondary: #004e98;
    --accent: #ff6700;
    --light: #f7f9fc;
    --dark: #333;
    --gray: #6c757d;
    --error: #dc3545;
    --success: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

.login-header {
    background-color: var(--primary);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.login-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-header .logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-header .logo i {
    font-size: 32px;
    color: var(--primary);
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
    outline: none;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 18px;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #ffe0e0;
    color: var(--error);
}

.login-footer {
    text-align: center;
    padding: 0 30px 25px;
    color: var(--gray);
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.peso-branding {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
}

@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .login-header {
        padding: 20px;
    }
    
    .login-form {
        padding: 20px;
    }
}