@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600&display=swap');

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

body {
    margin: 0;
    height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    text-align: center;
    z-index: 10;
    padding: 20px;
}

.user-avatar-wrapper {
    margin-bottom: 20px;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-name-display {
    font-size: 1.4rem;
    font-weight: 300;
    font-family: 'Noto Sans', 'Segoe UI', sans-serif;
    color: #fff;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    user-select: none;
    cursor: default;
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
    display: block;
}

.password-field {
    width: 100%;
    padding: 12px 60px 12px 16px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #fff;
    color: #000;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
}

.password-field:focus {
    border-color: #0078d7;
    box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.5);
    background: #fff;
}

.signin-arrow {
    transform: translateY(-50%);
    position: absolute;
    top: 22px;
    right: 0px;
    width: 45px;
    height: 45px;
    background: #0078d7;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.signin-arrow:hover {
    background: #006ac1;
}

.signin-arrow:active {
    background: #005a9e;
}

.signin-arrow i {
    color: white;
    font-size: 18px;
}

.other-options {
    margin-bottom: 24px;
}

.other-options a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.other-options a:hover {
    text-decoration: underline;
    color: #fff;
}

.action-icons-fixed {
    position: fixed;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 16px;
    z-index: 20;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.icon-btn i {
    font-size: 20px;
}

/* Mensagem de erro */
.error-message {
    display: none;
    text-align: center;
    margin-top: 24px;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-family: 'Segoe UI', sans-serif;
    width: 100%;
    padding: 0; /* 👈 Remove padding lateral */
    box-sizing: border-box;
}

.error-message p {
    margin: 0 0 16px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    padding: 0 5px;
    transform: translateX(-25px); /* 👈 EMPURRA 15px PARA A ESQUERDA */
}

.btn-ok {
    padding: 6px 16px;
    background: #0078d7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    width: 80px;
    height: 32px;
    transition: background 0.2s ease;
}

.btn-ok:hover {
    background: #006ac1;
}

.btn-ok:active {
    background: #005a9e;
}

/* Painel de Wi-Fi */
.wifi-panel {
    position: fixed;
    bottom: 60px;
    right: 60px;
    width: 300px;
    background: rgba(33, 33, 33, 0.97);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    backdrop-filter: blur(5px);
    color: white;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

.wifi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wifi-scan {
    cursor: pointer;
    color: #0078d7;
    font-size: 12px;
}

.wifi-scan:hover {
    text-decoration: underline;
}

.wifi-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.wifi-item {
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wifi-item:hover {
    background: rgba(255,255,255,0.1);
}

.wifi-item.disabled {
    color: #aaa;
    cursor: not-allowed;
}

.wifi-footer {
    text-align: right;
}

/* RESPONSIVO */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 10px;
    }
    .user-avatar {
        width: 100px;
        height: 100px;
    }
}