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

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
    color: #2c3e50;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.logo-img {
    width: 80px;
    height: 80px;
    background: #db3434;
    border-radius: 50%;
    margin-bottom: 25px;
    object-fit: cover;
    border: 3px solid #ae2727;
    transition: transform 0.3s ease;
}

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

h1 {
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

h2 {
    color: #db3434;
    margin: 0 0 30px 0;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    color: #333;
}

input:focus {
    border-color: #db3434;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(219, 52, 52, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #db3434 0%, #ae2727 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(219, 52, 52, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 52, 52, 0.4);
}

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

.btn-register {
    width: 100%;
    padding: 14px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-register:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

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

.error-msg {
    color: #c0392b;
    background: #fadbd8;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
    border-left: 4px solid #c0392b;
    animation: slideIn 0.3s ease;
}

.error-msg.show {
    display: block;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    h1 {
        font-size: 1.4rem;
    }

    input {
        font-size: 16px;
    }

    .btn-login, .btn-register {
        padding: 12px;
        font-size: 1rem;
    }
}