@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: auto;
    font-family: 'Roboto';
}

/* Prevent scrollbars on mobile devices */
@media (max-width: 767px) {
    html, body {
        overflow: hidden;
    }
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0099D8;
    z-index: -1;
}

.homepage-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    max-width: 600px;
    max-height: 90vh;
    background: rgba(255,255,255,0.97);
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(44, 62, 80, 0.18);
    padding: 2.5rem 2.5rem 5.3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: inherit;
    overflow-y: auto;
}

.homepage-card::-webkit-scrollbar {
    width: 6px;
    background: #fff;
}

.homepage-card::-webkit-scrollbar-thumb {
    background: #b3e5fc;
    border-radius: 6px;
}

.homepage-logo {
    width: 140px;
    margin-bottom: 2.3rem;
    margin-top: 0.5rem;
}

.homepage-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #0099D8;
    text-align: center;
    width: 100%;
    font-family: inherit;
}

.homepage-desc {
    font-size: 1.15rem;
    color: #293F63;
    margin-bottom: 2.2rem;
    font-weight: 760;
    text-align: center;
    width: 100%;
    font-family: inherit;
}

.homepage-subtitle {
    color: #0099D8;
    font-weight: 760;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    text-align: center;
    width: 100%;
    margin-bottom: 0.7rem;
    margin-top: 1.2rem;
    font-family: inherit;
    letter-spacing: 0.5px;
    display: block;
}

.homepage-label-center {
    display: block;
    width: 100%;
    text-align: center;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    color: #0099D8;
    font-weight: 500;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

/* Password Guidelines */
.password-guidelines-list {
    background: #0099D8;
    border-radius: 0.8rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.9rem;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
    width: 100%;
    word-break: break-word;
}

.password-guideline {
    display: flex;
    align-items: flex-start;
    font-size: clamp(0.86rem, 1.95vw, 0.92rem);
    color: #fff;
    margin-bottom: 0.7rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-family: inherit;
    letter-spacing: 0.01em;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
    flex-wrap: wrap;
}

.password-guideline:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.password-guideline .criteria-icon {
    font-size: 0.77em;
    margin-right: 0.85em;
    min-width: 1.3em;
    text-align: center;
    color: #fff;
    margin-top: 2px;
    flex-shrink: 0;
}

.password-guideline strong {
    margin-left: 0.35em;
    margin-right: 0.35em;
}

/* Password Criteria */
.password-criteria-list {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0;
    list-style: none;
    font-family: inherit;
}

.password-criteria-list li {
    display: flex;
    align-items: center;
    font-size: clamp(0.7rem, 1.6vw, 0.75rem);
    margin-bottom: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    background: #f5f7fa;
    color: #293F63;
    transition: background 0.2s, color 0.2s;
}

.password-criteria-list li.valid {
    background: #e6f7ee;
    color: #2e7d32;
}

.password-criteria-list li.invalid {
    background: #fdecea;
    color: #c62828;
}

.criteria-icon {
    font-size: 0.45em;
    margin-right: 0.65em;
    min-width: 1.1em;
    text-align: center;
}

/* Password Input */
.password-input-group {
    position: relative;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.2rem;
}

.password-input-group input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    font-size: clamp(1rem, 2.2vw, 1.08rem);
    border-radius: 0.75rem;
    border: 1px solid #b0bec5;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.password-input-group input:focus {
    border-color: #0099D8;
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #0099D8;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #005b8c;
}

/* Password Match Status */
.password-match-status {
    text-align: center;
    font-size: clamp(0.95rem, 2vw, 1rem);
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: inherit;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: #f5f7fa;
    width: 100%;
    margin-top: 0.5rem;
}

.password-match-status.valid {
    color: #2e7d32;
    background: #e6f7ee;
}

.password-match-status.invalid {
    color: #c62828;
    background: #fdecea;
}

/* Buttons */
.homepage-btn-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-bottom: 2rem;
    align-items: center;
    font-family: inherit;
}

/* Primary Buttons */
.choice-chip.homepage-btn {
    padding: 0.8rem 1.7rem;
    font-size: clamp(1.04rem, 2.6vw, 1.2rem);
    border-radius: 2rem;
    font-weight: 600;
    background: #0099D8;
    color: #fff;
    border: 2px solid #0099D8;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    outline: none;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
    user-select: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    min-width: 130px;
    max-width: 230px;
    margin: 0 auto;
}

.choice-chip.homepage-btn:hover,
.choice-chip.homepage-btn:focus {
    background: #fff;
    color: #0099D8;
    border-color: #0099D8;
    box-shadow: 0 4px 16px rgba(44,62,80,0.12);
}

.choice-chip.homepage-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.choice-chip.selected {
    background: #fff;
    color: #0099D8;
    border-color: #0099D8;
    box-shadow: 0 4px 16px rgba(44,62,80,0.12);
}

/* Service Desk Call Button */
.service-desk-btn {
    display: inline-block;
    background: #0099D8;
    color: #fff !important;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 153, 216, 0.3);
    margin-top: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid #0099D8;
    outline: none;
}

.service-desk-btn:hover {
    background: #fff;
    color: #0099D8 !important;
    border-color: #0099D8;
    box-shadow: 0 4px 12px rgba(0, 153, 216, 0.4);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.service-desk-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 153, 216, 0.3);
}

.service-desk-btn .phone-icon {
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.service-desk-btn:hover .phone-icon {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(169deg) brightness(96%) contrast(101%);
}

/* Footer */
.homepage-footer {
    margin-top: 1.2rem;
    font-size: 1rem;
    color: #293F63;
    text-align: center;
    width: 100%;
    font-family: inherit;
}

.homepage-footer p {
    margin: 0;
    padding: 0.5rem 1rem;
}

.homepage-footer a {
    color: #0099D8;
    text-decoration: underline;
    font-weight: 500;
    font-family: inherit;
}

.homepage-powered {
    margin-top: 1.5rem;
    color: #293F63;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    font-family: inherit;
    display: block;
}

/* Shared input styling */
.fp-user-input,
.homepage-userid {
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.75rem;
    font-size: clamp(1rem, 2.2vw, 1.08rem);
    border-radius: 0.75rem;
    border: 1px solid #b0bec5;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.homepage-userid {
    text-align: center;
}

.fp-user-input:focus,
.homepage-userid:focus {
    border-color: #0099D8;
    outline: none;
}

/* SelectMFA Specific */
.option-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.choice-chip-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.choice-chip-group .choice-chip.homepage-btn {
    width: 38%;
    min-width: 110px;
    font-size: clamp(0.95rem, 2vw, 1rem);
    padding: 0.5rem;
    margin: 0 0.5rem 0.5rem 0.5rem;
}

.forgot-process-card .choice-chip.homepage-btn {
    width: 72%;
    min-width: 130px;
    max-width: 230px;
    font-size: clamp(1.04rem, 2.6vw, 1.2rem);
    padding: 0.8rem 1.7rem;
    margin: 0 auto;
}

/* Shared form page styles */
.fp-form {
    width: 100%;
}

.fp-form-group {
    width: 100%;
    margin: 0 auto;
}

.fp-footer {
    margin-top: auto;
    padding-top: 8.4rem;
}

.fp-input-centered {
    text-align: center;
}

.fp-alert {
    width: 100%;
    font-family: inherit;
    margin-bottom: 1rem;
}

.fp-hidden {
    display: none;
}

/* Page-specific styles */
.forgot-process-card #assetChips {
    row-gap: 1.8rem;
}

.mfa-validation-card {
    min-height: 700px;
}

.select-mfa-card {
    padding-top: 4rem;
}

.select-mfa-validation-wrap {
    width: 100%;
    margin-bottom: 1rem;
}

.select-mfa-option-group {
    margin-bottom: 1.5rem;
}

.select-mfa-button-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.select-mfa-method-btn {
    margin: 0;
}

#guidanceWizard {
    width: 65%;
    margin-top: 6rem;
    margin-bottom: 5.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* Validation Message */
.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.text-danger.font {
    font-family: inherit;
}

@media (max-width: 700px) {
    .homepage-card {
        max-width: 98vw;
        min-width: 0;
        padding: 2rem 0.5rem 1.5rem 0.5rem;
        min-height: 0;
    }

    .fp-footer {
        padding-top: 4.5rem;
    }

    .homepage-title {
        font-size: 2rem;
    }
    
    .homepage-logo {
        width: 100px;
    }
    
    .choice-chip.homepage-btn {
        width: 100%;
        min-width: 0;
        font-size: 1rem;
    }
    
    .choice-chip-group .choice-chip.homepage-btn {
        width: 90%;
        min-width: 90px;
        font-size: 0.95rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .homepage-card {
        padding: 1rem 0.5rem;
        width: 100vw;
        max-width: 100vw;
    }
    
    .homepage-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .homepage-desc {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .choice-chip-group {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .choice-chip-group .choice-chip.homepage-btn {
        width: 100%;
        min-width: 0;
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .homepage-logo {
        max-width: 80px;
    }
    
    .homepage-footer {
        font-size: 0.85rem;
        gap: 0.3rem;
    }
}