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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #37a175;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Fundo desfocado (mantém o conteúdo nítido) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: #37a175;
    background-image: url("../img/PECF%20-%20Karol%20Gazoni%20%2814%29.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px);
    transform: scale(1.05);
    z-index: 0;
    pointer-events: none;
}

.page-logo {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 140px;
    height: auto;
    z-index: 10;
    background-color: transparent;
    border-radius: 5px;
    padding: 10px;
    margin-left: 20px;
}

.photo-credit {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 10;
    font-size: 12px;
    line-height: 1.2;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 6px 10px;
    border-radius: 6px;
}

.login-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

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

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

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #f5f7fb;
}

input:focus {
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #265b38;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: #2e7d32;
}

.btn-as-link {
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background-color: transparent;
    color: #4a7fc1;
    border: 1px solid #4a7fc1;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background-color: #eef4ff;
}

.erro {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.sucesso {
    background-color: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.sucesso a {
    color: inherit;
    text-decoration: underline;
    word-break: break-all;
}

/* Resultado (criar usuário / reset senha): separa e destaca usuário + link */
.sucesso.token-result {
    text-align: left;
    margin-bottom: 12px;
}

.token-section {
    margin-bottom: 12px;
}

.token-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.token-value {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    font-weight: 600;
    word-break: break-word;
}

.token-result .copy-row {
    align-items: stretch;
    margin-top: 6px;
}

.token-result .copy-link {
    display: block;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    text-decoration: none;
    word-break: break-all;
}

.token-result .copy-link:hover {
    text-decoration: underline;
}

.token-meta {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.85;
}

.action-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    text-align: left;
}

.copy-link {
    flex: 1;
}

.btn-copy {
    padding: 10px 12px;
    background-color:#265b38;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background-color:#2e7d32;
}

.voltar-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.voltar-link:hover {
    color: #37a175;
}

select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
    transition: border-color 0.2s;
}

select:focus {
    border-color: #37a175;
}

@media (max-width: 640px) {
    .page-logo {
        width: 110px;
        top: 10px;
        left: 10px;
        margin-left: 0;
    }

    .photo-credit {
        left: 10px;
        bottom: 10px;
        font-size: 11px;
    }
}