/**
 * Stiluri pentru verificare legitimații
 * Arhiepiscopia Bucureștilor
 */

/* ============================================================
   LAYOUT GENERAL
   ============================================================ */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #60a3bc !important;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* ============================================================
   CARD PRINCIPAL
   ============================================================ */

.user_card {
    width: 350px;
    margin-top: auto;
    margin-bottom: auto;
    background: #fff;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 5px;
}

/* ============================================================
   LOGO
   ============================================================ */

.brand_logo_container {
    position: absolute;
    height: 170px;
    width: 170px;
    top: -75px;
    border-radius: 50%;
    background: #60a3bc;
    padding: 10px;
    text-align: center;
}

.brand_logo {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    border: 2px solid white;
}

/* ============================================================
   FORMULAR
   ============================================================ */

.form_container {
    margin-top: 100px;
}

.login_container {
    padding: 0 2rem;
}

.input-group-text {
    background: #c0392b !important;
    color: white !important;
    border: 0 !important;
    border-radius: 0.25rem 0 0 0.25rem !important;
}

.input_user:focus {
    box-shadow: none !important;
    outline: 0px !important;
}

#submit_search {
    color: white;
    background-color: #55b955;
    padding: 7px;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
    width: 100%;
    height: 3em;
    cursor: pointer;
}

#submit_search:disabled {
    background-color: #999;
    cursor: not-allowed;
}

#submit_search:hover:not(:disabled) {
    background-color: #4a9f4a;
}

/* ============================================================
   MESAJE STATUS
   ============================================================ */

#status {
    text-align: center;
    padding: 5px;
}

.ok_message {
    background-color: #97ea97;
    color: #128a04;
    border: 2px solid #128a04;
    border-radius: 4px;
}

.error_message {
    background-color: #ea9797;
    color: maroon;
    border: 2px solid maroon;
    border-radius: 4px;
}

/* ============================================================
   DETALII LEGITIMAȚIE
   ============================================================ */

.badge-details {
    margin-top: 10px;
}

.badge-row {
    margin-bottom: 5px;
}

.badge-row .label {
    font-weight: bold;
}

.badge-row .value {
    margin-left: 5px;
}

/* ============================================================
   SPINNER (LOADING)
   ============================================================ */

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#submit_search.loading {
    background-color: #888;
    cursor: wait;
}

/* ============================================================
   FOOTER
   ============================================================ */

.user_card a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.user_card a:hover {
    text-decoration: underline;
}
