@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&display=swap');

:root {
    --primary: #8a3ab9;
    --primary-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --primary-btn: linear-gradient(135deg, #c32aa3 0%, #4c5fd7 100%);
    --dark: #0f172a;
    --light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%), var(--primary-gradient);
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

header {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    text-align: center;
}

header img {
    height: 45px;
    filter: drop-shadow(0px 2px 5px rgba(0,0,0,0.1));
}

.main-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* Título e Subtítulo */
.form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
    text-align: left;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: block;
    padding-left: 4px;
}

form .input {
    font-family: inherit;
    font-size: 15px;
    height: 48px;
    width: 100%;
    outline: 0;
    border: 1px solid #cbd5e1;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 0 16px;
    font-weight: 400;
    color: var(--dark);
    transition: all 0.25s ease;
}

form .input:focus {
    border-color: #bc1888;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(188, 24, 136, 0.15);
}

form .button {
    font-family: inherit;
    border: 0;
    height: 48px;
    background: var(--primary-btn);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(195, 42, 163, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

form .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(195, 42, 163, 0.4);
    filter: brightness(1.05);
}

form .button:active {
    transform: translateY(0);
}

form p {
    font-size: 14px;
    color: #64748b;
    margin-top: 5px;
}

form a {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    color: #4c5fd7;
    transition: color 0.2s ease;
}

form a:hover {
    color: #bc1888;
}

/* Avisos e Flash Messages */
.aviso {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    text-align: left;
}

/* Responsividade */
@media (max-width: 480px) {
    .main-container {
        padding: 30px 20px;
        border-radius: 16px;
    }
}