/**
 * My Account
 *
 * Follows the portal's look: #212121 borders with a ridged silver outline,
 * olive panels, silver text, #b8a680 headings.
 */

/* Responsive adjustments for smaller screens */
/* Media query for smaller screens */
@media (max-width: 750px) and (orientation: portrait) {
    div.myacct-wrap {
        zoom: 80%;
        -moz-transform: scale(100%);/* Firefox Property */
        -moz-transform-origin: 0 0;
        -o-transform: scale(100%);/* Opera Property */
        -o-transform-origin: 0 0;
        -webkit-transform: scale(100%);/* Safari Property */
        -webkit-transform-origin: 0 0;
        transform: scale(100%); /* Standard Property */
        transform-origin: 0 0;  /* Standard Property */
        float: left
    }
}

.myacct-wrap {
    display: inline-block;
    border:
    5px solid #212121;
    outline: 2px ridge silver;
    padding: 18px;
    color: silver;
    background: rgb(61,54,30);
    background: radial-gradient(circle, rgba(61,54,30,0.9868123933167017) 0%, rgba(47,43,35,1) 75%);
    width: 520px;
    max-width: 100%;
    text-align: left;
    color-scheme: dark;
}

.myacct-title {
    margin: 0 0 6px;
    color: #b8a680;
    font-size: 26px;
    text-align: center;
}

.myacct-wrap p.myacct-signed-in {
    color: silver;
    font-size: 16px;
    text-align: center;
    margin: 0 0 16px;
}

.myacct-denied {
    color: #b8a680;
    font-size: 20px;
    text-align: center;
}

/* Each section is its own panel so the three jobs stay visually separate. */
.myacct-panel {
    border: 1px solid #4c4b4b;
    background-color: rgba(47, 43, 35, 0.55);
    padding: 14px;
    margin-bottom: 16px;
}

.myacct-panel-title {
    margin: 0 0 8px;
    color: #b8a680;
    font-size: 20px;
    text-align: left;
}

.myacct-wrap p.myacct-help {
    color: silver;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    margin: 0 0 12px;
}

/* Standing explanation that every change needs the current password. */
.myacct-wrap p.myacct-notice {
    color: #d8d2bd;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-left: 3px solid #b8a680;
    background-color: rgba(126, 120, 83, 0.18);
}

/* Small note sitting under a field. */
.myacct-wrap p.myacct-hint {
    color: #a4936b;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    margin: 5px 0 0;
}

.myacct-wrap p.myacct-help-small {
    font-size: 14px;
    color: #a4936b;
    margin-top: 10px;
}

.myacct-on {
    color: #9fbf7f;
}

.myacct-field {
    margin-bottom: 10px;
}

.myacct-field label {
    display: block;
    margin-bottom: 4px;
    color: #b8a680;
    font-size: 16px;
}

/* The portal forces `input` transparent/silver/centred with !important, so only
   the bits that rule does not cover are set here. */
.myacct-field input[type="text"],
.myacct-field input[type="password"] {
    width: 100%;
    font-size: 18px !important;
    text-align: left !important;
    height: 36px;
}

.myacct-btn {
    background-color: #212121;
    color: silver;
    border-radius: 4px;
    border: 1px solid black;
    outline: 2px ridge rgb(84, 84, 84);
    cursor: pointer;
    height: 38px;
    padding: 0 18px;
    font-size: 17px;
    margin-right: 8px;
    margin-top: 4px;
}

.myacct-btn:hover:not(:disabled) {
    background-color: #7e7853;
    box-shadow: 0px 0px 17px 5px rgba(97,93,73,0.9);
}

.myacct-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.myacct-btn-secondary {
    font-size: 16px;
}

/* Result banner. */
.myacct-message {
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #4c4b4b;
    background-color: rgba(126, 120, 83, 0.25);
    color: #d8d2bd;
    font-size: 16px;
    text-align: center;
}

.myacct-message[hidden] {
    display: none;
}

.myacct-message.myacct-error {
    background-color: rgba(140, 60, 50, 0.25);
    color: #e6b3a8;
}

/* Freshly issued backup codes. */
.myacct-codes {
    margin-top: 12px;
    padding: 12px;
    background: #2f2b23;
    border: 1px solid #4c4b4b;
}

.myacct-codes[hidden] {
    display: none;
}

.myacct-codes ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 18px;
}

.myacct-codes li {
    margin: 0;
    color: silver;
    font-family: Consolas, "Courier New", monospace;
    font-size: 17px;
    letter-spacing: 1px;
    text-align: center;
}

/* Sign out */
.myacct-panel-signout {
    border-color: #6b5f3d;
}

a.myacct-btn-signout {
    display: inline-block;
    text-decoration: none;
    line-height: 38px;
    text-align: center;
}

a.myacct-btn-signout:hover {
    background-color: #7e7853;
    box-shadow: 0px 0px 17px 5px rgba(97,93,73,0.9);
    color: silver;
}
