/* Login page skinned as an iGadgetBox for consistency with the dashboard.
   Chrome values (colors, fonts, title bar) are copied from index.html. */

body {
    background-color: #999999;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font: 13px arial, sans-serif;
    color: #111111;
}

.login-wrapper {
    max-width: 400px;
    width: 90%;
}

.iGadgetBox {
    display: block;
    border: 1px solid #DCDCDC;
}

.iGadgetBox .iGadgetBoxTitle {
    background-color: #F7F7F7;
    border-bottom: 1px solid #DCDCDC;
    font: 13px arial, sans-serif;
    font-weight: bold;
    height: 28px;
    line-height: 28px;
    position: relative;
    color: #111111;
    overflow: hidden;
    padding-top: 3px;
    padding-right: 7px;
    padding-bottom: 0;
    padding-left: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iGadgetBox .iGadgetBoxContent {
    background-color: #FFFFFF;
    position: relative;
    margin: 0;
    overflow: hidden;
    padding: 16px;
    text-align: center;
}

.iGadgetBoxContent p {
    margin: 8px 0 16px;
    color: #333333;
}

.iGadgetBoxContent input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 16px;
    border: 1px solid #DCDCDC;
    font-family: monospace;
}

.iGadgetBoxContent input:focus {
    border-color: #1155CC;
    outline: none;
}

.iGadgetBoxContent button {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    font: 13px arial, sans-serif;
    font-weight: bold;
    color: #111111;
    background-color: #F7F7F7;
    border: 1px solid #DCDCDC;
    cursor: pointer;
}

.iGadgetBoxContent button:hover:enabled {
    background-color: #EFEFEF;
}

.iGadgetBoxContent button:disabled {
    color: #888888;
    cursor: default;
}

/* Error styling mirrors the dashboard's problem banner (gold warning) */
.alert {
    background-color: #FFF8E7;
    border: 1px solid #DCDCDC;
    border-left: 4px solid #FFD700;
    padding: 8px 12px;
    margin-bottom: 12px;
    text-align: left;
}

.alert::before {
    content: "\26A0 ";
    color: #FFD700;
    font-size: 16px;
    margin-right: 5px;
}
