/**
 * Windows XP - Login Screen
 * Tela de login/welcome do Windows XP
 */

/* Welcome Screen (mesma estrutura do Login) */
#xp-welcome {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #084DA3;
    display: none;
    flex-direction: column;
    z-index: 9999;
    cursor: progress;
}

#xp-welcome.active {
    display: flex;
}

/* Header Welcome (igual ao Login) */
#xp-welcome header {
    min-height: 112px;
    width: 100%;
    background-color: #084DA3;
    position: relative;
}

#xp-welcome header::before {
    content: "";
    width: 100%;
    height: 7px;
    position: absolute;
    top: 110px;
    background: linear-gradient(270deg, #084DA3 -33.4%, #084DA3 6.07%, #FFFFFF 49.56%, #084DA3 82.59%, #084DA3 121.25%);
}

/* Main Welcome */
#xp-welcome main {
    flex: 1;
    background: radial-gradient(19.48% 42.48% at 10% 22.48%, #9CC0E9 0%, #508FD9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#xp-welcome .welcome-text {
    font-size: 80px;
    font-family: 'Franklin Gothic Medium', 'Arial Black', sans-serif;
    font-style: italic;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 6px 8px rgba(49, 81, 181, 0.8);
    letter-spacing: 2px;
}

/* Footer Welcome (igual ao Login) */
#xp-welcome footer {
    min-height: 12.5vh;
    width: 100%;
    background-color: #084DA3;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
}

#xp-welcome footer::before {
    content: "";
    width: 100%;
    height: 7px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(270deg, #084DA3 -33.4%, #084DA3 6.07%, #FF9933 49.56%, #084DA3 82.59%, #084DA3 121.25%);
}

#xp-welcome .informations {
    color: #fff;
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 400;
    line-height: 1.4;
}

#xp-welcome.fade-out {
    animation: fadeOut 0.8s forwards;
}

/* ========================================
   LOGIN SCREEN
======================================== */

#xp-login {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #084DA3;
    display: none;
    flex-direction: column;
    z-index: 9998;
}

#xp-login.active {
    display: flex;
}

/* Header (Barra azul superior) */
#xp-login header {
    min-height: 112px;
    width: 100%;
    background-color: #084DA3;
    position: relative;
}

#xp-login header::before {
    content: "";
    width: 100%;
    height: 7px;
    position: absolute;
    top: 110px;
    background: linear-gradient(270deg, #084DA3 -33.4%, #084DA3 6.07%, #FFFFFF 49.56%, #084DA3 82.59%, #084DA3 121.25%);
}

/* Main Content Area */
#xp-login main {
    flex: 1;
    background: radial-gradient(19.48% 42.48% at 10% 22.48%, #9CC0E9 0%, #508FD9 100%);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px;
}

/* Logo e Título */
#xp-login .img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    top: -40px;
}

/* Logo do Windows XP */
#xp-login .img .xp-logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

#xp-login .img h1 {
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    color: white;
    font-weight: 500;
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
}

/* Linha divisória */
#xp-login .line {
    width: 2px;
    height: 80%;
    margin: 0 42px;
    background: linear-gradient(180deg, #508FD9 0%, #FFFFFF 47.4%, #508FD9 98.96%);
}

/* User Cards Container */
#xp-login .users {
    min-width: 445px;
}

#xp-login .user-card {
    padding: 15px 20px;
    width: 445px;
    height: 112.5px;
    background: linear-gradient(90deg, #084DA3 0%, #508FD9 100%);
    border-radius: 4px 0px 0px 4px;
    position: relative;
    background-image: url('../images/card-bg.png');
    background-size: cover;
    display: flex;
    margin-bottom: 20px;
}

#xp-login .user-card.inactive {
    opacity: 0.6;
    cursor: pointer;
}

/* User Icon */
#xp-login .icon-user {
    width: 81px;
    height: 81px;
    border: 2px solid #FFCC00;
    border-radius: 4px;
    background: linear-gradient(135deg, #5A8FD9 0%, #3B6FB8 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

#xp-login .icon-user svg {
    width: 60%;
    height: 60%;
    opacity: 0.9;
}

#xp-login .user-card.inactive .icon-user {
    border-color: #fff;
}

/* User Info */
#xp-login .user {
    margin-left: 20px;
    position: relative;
    color: #fff;
    flex: 1;
}

#xp-login .user h3 {
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 20px;
    margin: 0;
}

#xp-login .user p {
    font-family: 'Verdana', 'Tahoma', sans-serif;
    margin-top: 20px;
    font-size: 13px;
}

#xp-login .user .error-message {
    position: absolute;
    bottom: -50px;
    left: 0;
    background-color: rgba(255, 68, 68, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

/* Input e Botões */
#xp-login .input {
    position: absolute;
    display: flex;
    align-items: center;
    bottom: -24px;
    left: 0;
}

#xp-login .input input {
    padding: 0 0.6rem;
    outline: none;
    height: 40px;
    width: 220px;
    background: #FFFFFF;
    border: 1px solid #333333;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #000;
}

#xp-login .input input:focus {
    border-color: #5A8FD9;
    box-shadow: 0 0 0 2px rgba(90, 143, 217, 0.2);
}

#xp-login .input input::placeholder {
    color: #999;
    font-style: italic;
}

/* Botões estilizados */
#xp-login .input button {
    width: 40px;
    height: 40px;
    background-color: #23B221;
    border: 1px solid #fff;
    box-shadow: inset 4px 2px 8px rgba(255, 255, 255, 0.6), inset -2px -3px 5px #267C08;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 5px;
}

#xp-login .input button.green {
    background-color: #23B221;
    box-shadow: inset 4px 2px 8px rgba(255, 255, 255, 0.6), inset -2px -3px 5px #267C08;
}

#xp-login .input button.blue {
    background-color: #2266F5;
    box-shadow: inset 4px 2px 8px rgba(255, 255, 255, 0.6), inset -2px -3px 5px #0844C3;
}

#xp-login .input button img,
#xp-login .input button svg {
    width: 20px;
    height: 20px;
}

#xp-login .input button:hover {
    filter: brightness(1.1);
}

#xp-login .input button:active {
    box-shadow: inset -2px -1px 4px rgba(255, 255, 255, 0.3), inset 2px 3px 6px rgba(0, 0, 0, 0.4);
}

/* Footer */
#xp-login footer {
    min-height: 12.5vh;
    width: 100%;
    background-color: #084DA3;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

#xp-login footer::before {
    content: "";
    width: 100%;
    height: 7px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(270deg, #084DA3 -33.4%, #084DA3 6.07%, #FF9933 49.56%, #084DA3 82.59%, #084DA3 121.25%);
}

#xp-login .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

#xp-login .btn button {
    width: 40px;
    height: 40px;
    background-color: #E55022;
    border: 1px solid #fff;
    box-shadow: inset 4px 2px 8px rgba(255, 255, 255, 0.6), inset -2px -3px 5px #AA2300;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#xp-login .btn button:hover {
    filter: brightness(1.1);
}

#xp-login .btn button:active {
    box-shadow: inset -2px -1px 4px rgba(255, 255, 255, 0.3), inset 2px 3px 6px rgba(0, 0, 0, 0.4);
}

#xp-login .btn button img,
#xp-login .btn button svg {
    width: 24px;
    height: 24px;
}

#xp-login .btn p {
    color: #fff;
    margin-left: 20px;
    font-size: 18px;
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    font-weight: 400;
}

#xp-login .informations {
    color: #fff;
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 400;
    line-height: 1.4;
}

/* Fade Out Animation */
#xp-login.fade-out {
    animation: fadeOut 1s forwards;
}

/* Responsive */
@media (max-width: 768px) {
    #xp-login main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #xp-login .line {
        display: none;
    }
    
    #xp-login .img {
        top: 0;
    }
    
    #xp-login .users {
        min-width: auto;
        width: 100%;
    }
    
    #xp-login .user-card {
        width: 100%;
        max-width: 445px;
        margin: 0 auto 20px;
    }
}
