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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Header UniPD */
.unipd-header {
    background: #9b0014;
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unipd-header .header-content {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unipd-header .logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.unipd-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.unipd-header .subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 2px;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
    border-top: 4px solid #9b0014;
    animation: slideUp 0.5s ease-out;
    max-width: 480px;
    width: 100%;
}

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

.logo {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.logo h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.logo p {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #9b0014;
    box-shadow: 0 0 0 3px rgba(155, 0, 20, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #9b0014;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover:not(:disabled) {
    background: #7a0010;
    box-shadow: 0 4px 8px rgba(155, 0, 20, 0.2);
}

.btn-login:active:not(:disabled) {
    background: #6a000d;
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.info {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.footer {
    background: #333;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 500px) {
    .login-box {
        padding: 36px 28px;
    }

    .logo h1 {
        font-size: 40px;
    }
}
