.cognito-main {
    background-color: #fff;
    flex: 1;
    padding: 20px;
}

.cognito-main--soft {
    background:
        radial-gradient(circle at top left, rgba(165, 215, 20, 0.16), transparent 32%),
        linear-gradient(180deg, #fbfff4 0%, #fff 42%);
}

.cognito-main--full {
    height: 100%;
}

.cognito-logo {
    text-align: center;
    margin-bottom: 30px;
}

.cognito-login-box {
    margin-top: 0;
    height: 100%;
}

.cognito-login-form {
    opacity: 1;
}

.cognito-login-error {
    color: red;
}

.cognito-form-row {
    margin: 0 0 30px 0;
}

.um-22.um,
.cognito-form {
    max-width: 450px;
}

.cognito-form,
.cognito-form .um-form {
    margin: 0 auto;
}

.page-cognito-pass-reset .cognito-logo {
    margin-top: 12px;
    margin-bottom: 22px;
}

.page-cognito-pass-reset .cognito-logo img {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
}

.page-cognito-pass-reset .cognito-form {
    max-width: 500px;
}

.cognito-auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #edf2df;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(68, 82, 30, 0.12);
    padding: 30px 25px;
}

.cognito-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.cognito-card-icon {
    align-items: center;
    background: linear-gradient(135deg, #a5d714 0%, #7fb80e 100%);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(127, 184, 14, 0.24);
    color: #fff;
    display: inline-flex;
    font-size: 24px;
    height: 58px;
    justify-content: center;
    margin-bottom: 16px;
    width: 58px;
}

.cognito-card-icon--success {
    background: linear-gradient(135deg, #28a745 0%, #16803a 100%);
}

.cognito-card-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.cognito-card-header p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.cognito-notice {
    align-items: center;
    background: #fffaf0;
    border: 1px solid #ffe1a6;
    border-radius: 10px;
    color: #7a5a11;
    display: flex;
    font-size: 14px;
    gap: 10px;
    line-height: 1.7;
    margin-bottom: 15px;
    padding: 10px;
}

.cognito-notice i {
    color: #d69b00;
    font-size: 18px;
}

.error-message {
    color: #d63384;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.success-message {
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: normal;
}
.success-message i {
    font-size: 18px;
}

.warning-message {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.um-field-area input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.page-cognito-pass-reset .um-field-area input {
    margin-bottom: 0;
}

.page-cognito-pass-reset .um-field-label {
    color: #333;
    font-size: 14px;
}

.page-cognito-pass-reset .um-field-area input {
    background: #fff;
    border: 1px solid #dce5d0;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    font-size: 15px;
    padding: 13px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-cognito-pass-reset .um-field-area input:focus {
    border-color: #a5d714;
    box-shadow: 0 0 0 4px rgba(165, 215, 20, 0.18);
    outline: none;
}

.um-field-label {
    margin-bottom: 8px;
    font-weight: bold;
}

.um-button {
    background-color: #007cba;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.um-button:hover {
    background-color: #005a87;
}

.page-cognito-pass-reset .um-button {
    background: linear-gradient(135deg, #a5d714 0%, #7fb80e 100%);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(127, 184, 14, 0.24);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 6px;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.page-cognito-pass-reset .um-button:hover {
    background: linear-gradient(135deg, #b2e51a 0%, #89c610 100%);
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.um-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.password-requirements {
    font-size: 12px;
    color: #6c757d;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.password-strength {
    margin-top: 5px;
    height: 2px;
    font-size: 12px;
}
.password-strength:before {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-bottom: 3px;
}

.strength-weak:before {
    background-color: #dc3545;
}

.strength-medium:before {
    background-color: #ffc107;
}

.strength-strong:before {
    background-color: #28a745;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a,
.login-link a {
    color: #007cba;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f3ff;
    border-radius: 4px;
}

.login-link a {
    font-weight: bold;
}

.session-warning {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: normal;
}

.session-warning i {
    font-size: 18px;
}
.session-warning p {
    font-size: 14px;
}

@media (max-width: 640px) {
    .cognito-main {
        padding: 16px;
    }

    .cognito-auth-card {
        border-radius: 14px;
        padding: 26px 20px;
    }

    .cognito-card-header h2 {
        font-size: 21px;
    }

    .page-cognito-pass-reset .info-message {
        width: 100%;
    }

    .page-reset-confirm .info-message {
        width: 100%;
    }
}

.admin-contact {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

.admin-contact h4 {
    margin-bottom: 10px;
    color: #495057;
}

.admin-contact p {
    margin-bottom: 5px;
    color: #6c757d;
    font-size: 14px;
}

.admin-contact-list {
    text-align: left;
    margin: 10px 0;
}

.cognito-form-intro {
    text-align: center;
    margin-bottom: 20px;
}

.required-marker {
    color: red;
}

.is-hidden {
    display: none;
}

.field-group {
    margin-bottom: 20px;
    margin-top: 20px;
}

.token-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 20px;
}

.session-info {
    background-color: #e7f3ff;
    border: 1px solid #b8daff;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.password-match-indicator {
    font-size: 12px;
    margin-top: 5px;
    transition: width 0.3s ease;
}

.password-match-indicator::before {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 3px;
    margin-bottom: 3px;
    transition: background-color 0.3s ease;
}

.password-match-indicator.match-bar-strong::before {
    background-color: #28a745;
}

.password-match-indicator.match-bar-weak::before {
    background-color: #dc3545;
}

/* reset-confirm（/reset-confirm/）：password-reset 画面と同等のトーン */
.page-reset-confirm .cognito-form {
    max-width: 520px;
}

.page-reset-confirm .um-field-label {
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-reset-confirm .um-field-area input {
    background: #fff;
    border: 1px solid #dce5d0;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    font-size: 15px;
    margin-bottom: 0;
    padding: 13px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-reset-confirm .um-field-area input:focus {
    border-color: #a5d714;
    box-shadow: 0 0 0 4px rgba(165, 215, 20, 0.18);
    outline: none;
}

.page-reset-confirm .um-button {
    background: linear-gradient(135deg, #a5d714 0%, #7fb80e 100%);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(127, 184, 14, 0.24);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 6px;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.page-reset-confirm .um-button:hover {
    background: linear-gradient(135deg, #b2e51a 0%, #89c610 100%);
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.page-reset-confirm .login-link {
    background: #f0faf0;
    border: 1px solid #d7ead0;
    border-radius: 12px;
    margin-top: 8px;
}

.page-reset-confirm .login-link p {
    margin: 0 0 12px;
}

.page-reset-confirm .info-message {
    text-align: left;
}

.reset-confirm-meta {
    align-items: baseline;
    border-bottom: 1px solid #eaf1e2;
    display: flex;
    font-size: 14px;
    gap: 12px;
    justify-content: space-between;
    margin: 0;
    padding: 10px 0;
}

.reset-confirm-meta:last-child {
    border-bottom: none;
}

.reset-confirm-meta-label {
    color: #777;
    flex: 0 0 auto;
    font-size: 12px;
}

.reset-confirm-meta span:last-child {
    color: #222;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-align: right;
}

.cognito-card-header--compact {
    margin-bottom: 16px;
}

.cognito-card-header--compact h2 {
    font-size: 20px;
}

.cognito-card-icon--warning {
    background: linear-gradient(135deg, #ffb020 0%, #e07b00 100%);
    box-shadow: 0 10px 22px rgba(224, 123, 0, 0.24);
}

.cognito-notice--soft {
    background: #f9fbff;
    border-color: #d6e6ff;
    color: #3c4d61;
}

.cognito-loading-message {
    align-items: center;
    display: flex;
    font-size: 14px;
    gap: 12px;
    justify-content: center;
    text-align: center;
}

.cognito-loading-message i {
    font-size: 20px;
}

.page-reset-confirm .token-info {
    align-items: center;
    display: flex;
    font-size: 13px;
    gap: 8px;
}
