/* Login Page Styles */
:root {
    --primary-color: #023c31;
    --primary-dark: #046b30;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
}

body.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: var(--font-body);
    background-image: url('../images/background-pattern.svg'), linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-position: center;
    background-size: cover;
}

.login-container {
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 15px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.login-header {
    padding: 30px 0;
    text-align: center;
    background-image: linear-gradient(135deg, rgba(2, 60, 49, 0.1) 0%, rgba(4, 107, 48, 0.1) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.login-header::before, 
.login-header::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(rgba(2, 60, 49, 0.15), transparent);
    z-index: 0;
}

.login-header::before {
    top: -30px;
    left: -30px;
}

.login-header::after {
    bottom: -30px;
    right: -30px;
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.login-logo img {
    max-height: 80px;
    animation: pulse 2s infinite;
}

.login-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
}

.login-subtitle {
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.login-content {
    padding: 30px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    animation: slideInDown 0.4s ease-out;
}

.alert i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.alert-danger {
    background-color: rgba(231, 74, 59, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background-color: rgba(28, 200, 138, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 40px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: rgba(2, 60, 49, 0.05);
    color: var(--dark-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 60, 49, 0.25);
    background-color: white;
}

.form-group input:focus + i {
    color: var(--primary-dark);
}

.show-password {
    position: absolute;
    right: 15px;
    top: 40px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.show-password:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 6px rgba(2, 60, 49, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 10px rgba(2, 60, 49, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(2, 60, 49, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

.login-links {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    padding: 15px 30px 30px;
    font-size: 0.9rem;
}

.login-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
}

.login-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -3px;
    left: 0;
    transition: width 0.3s;
}

.login-links a:hover::after {
    width: 100%;
}

.footer {
    text-align: center;
    padding: 15px 0;
    font-size: 0.8rem;
    color: var(--dark-color);
    opacity: 0.8;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        border-radius: 5px;
    }
    .login-content {
        padding: 20px;
    }
    .login-header h1 {
        font-size: 1.5rem;
    }
}