/* Login */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(12px, 4vw, 20px);
}

.container {
    --login-card-padding: clamp(26px, 7vw, 40px);
    background: white;
    padding: var(--login-card-padding);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 100%;
}

.login-brand-panel {
    display: flex;
    min-height: 105px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 26px;
    padding: 6px;
    border-radius: 11px;
    background: linear-gradient(135deg, #4f5fc9 0%, #6d3f91 100%);
    box-shadow: 0 8px 22px rgba(79, 95, 201, .18);
}

.login-brand {
    display: block;
    width: min(100%, 300px);
    height: auto;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.2;
    text-align: center;
}

.login-tagline {
    margin: -18px 0 24px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

input {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    min-height: 44px;
    background: linear-gradient(135deg, #4f5fc9 0%, #6d3f91 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.msg {
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    border-left: 4px solid;
    background: #fff5f5;
    color: #721c24;
    border-left-color: #f5c6cb;
}

.msg.sucesso {
    background: #f0f9f7;
    color: #155724;
    border-left-color: #c3e6cb;
}

a {
    color: #4656bd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

p {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

@media (max-height: 700px) {
    body {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 28px 20px;
    }
}
