/* sheepCRM Authentication Theme Styles */

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

.material-icons.small {
    font-size: 16px;
}

.header {
    color: #fff;
    background-color: #4FA073;
    padding: 20px 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logout {
    padding-right: 27px;
}

.header-logout a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.header-logout a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: #f7f7f7;
    color: #2F3C50;
}

.content-wrap {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.login-wrapper {
    position: relative;
    min-height: calc(100vh - 70px - 120px); /* Account for header and footer space */
    margin-top: 0;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Inter';
    background-image: url('https://sheepcrm-tundra-static.s3.eu-west-2.amazonaws.com/images/public/bg.svg');
    background-repeat: no-repeat;
    background-position: center bottom -70px;
    background-size: 100%;
}

.login-wrapper .box {
    margin: -70px auto 0;
    padding: 35px 0 30px;
    float: none;
    width: 400px;
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 1);
}

/* Home page specific layout - wider container */
.home-wrapper .box {
    margin: 20px auto 0;
    padding: 30px;
    float: none;
    width: 95%;
    max-width: 1200px;
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 1);
}

.login-error, .login-success {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: 20px;
}

.login-error span.material-icons {
    align-self: flex-start;
    padding-right: 10px;
    color: #BD5A5A;
}

.login-success span.material-icons {
    align-self: flex-start;
    padding-right: 10px;
    color: #4FA073;
}

.login-error span, .login-success span {
    text-align: left;
}

.text-error {
    color: #BD5A5A;
}

.text-success {
    color: #4FA073;
}

/* Turn off nasty yellow background on forms */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

h1 {
    margin-bottom: 1em;
}

h2 {
    font-size: 20px;
    text-align: left;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1em;
    color: #2F3C50;
}

label {
    display: block;
    text-align: left;
}

a:hover {
    text-decoration: none;
}

.btn {
    font-size: 1.25em;
    padding: 8px 30px;
    width: 100%;
}

.btn.btn-login {
    background-color: #4FA073;
    color: white;
}

.btn.btn-default {
    background-color: #e7e7e7;
    color: #333;
}

.btn:hover {
    opacity: 0.9;
}

p {
    text-align: left;
    line-height: 24px;
}

p.form-label {
    font-weight: 400;
    font-size: 1.25em;
    margin-bottom: 0;
}

p.form-label-small {
    font-weight: 200;
    font-size: 0.75em;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    font-size: 1.25em;
    height: 40px;
    margin-bottom: 18px;
    border-color: #b2bfc7;
    padding-left: 12px;
}

/* Placeholder style */
input:-moz-placeholder {
    color: #9ba8b6;
    letter-spacing: 0px;
}

input:-ms-input-placeholder {
    color: #9ba8b6;
    letter-spacing: 0px;
}

input::-webkit-input-placeholder {
    color: #9ba8b6;
    letter-spacing: 0px;
}

input.has-error {
    border-color: #BD5A5A;
}

.checkbox {
    text-align: left;
}

.inner-addon {
    position: relative;
}

.inner-addon .form-control-feedback {
    position: absolute;
    padding: 10px;
    right: 10px;
    pointer-events: auto;
}

.inner-addon input {
    padding-right: 30px;
}

a.forgot {
    float: right;
    text-align: right;
    color: #4FA073;
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 6px;
    text-decoration: underline;
}

.activate {
    display: block;
    text-align: center;
    color: #4FA073;
    font-size: 1em;
    margin-top: 20px;
    margin-bottom: 6px;
}

.activate a {
    color: #4FA073;
    text-decoration: underline;
}

.no-account {
    margin: 0 auto;
    float: none;
    text-align: center;
    font-size: 14px;
    margin-top: 25px;
}

.no-account p {
    display: inline-block;
    color: #888;
}

.no-account a {
    color: #888;
    margin-left: 7px;
    border-bottom: 1px solid;
    transition: all .1s linear;
    -moz-transition: all .1s linear;
    /* Firefox 4 */
    -webkit-transition: all .1s linear;
    /* Safari and Chrome */
    -o-transition: all .1s linear;
    /* Opera */
}

.sheeplogo {
    text-align: center;
    padding-top: 10px;
}

.logo-wrapper {
    padding-bottom: 50px;
}

#public-home {
    margin-left: 50px;
}

/* responsive */
@media (max-width: 480px) {
    .login-wrapper .box {
        width: 90%;
    }

    #public-home {
        display: none;
    }
}

/* Home page responsive layout */
@media (max-width: 768px) {
    .content-wrap {
        width: 95%;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .account-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .account-info-item span {
        text-align: left;
    }

}

@media (max-width: 900px) {
    /* Stack applications vertically on smaller screens */
    .home-apps-grid {
        grid-template-columns: 1fr !important;
    }

    .account-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

}

.password-icon {
    display: inline-block;
    height: 24px;
    width: 24px;
    float: right;
}

/* Footer styling - remove background color and fix visibility/positioning */
footer {
    background: none !important;
    background-color: transparent !important;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    clear: both;
}

footer .nav {
    background: none !important;
    background-color: transparent !important;
}

footer .nav-item {
    background: none !important;
    background-color: transparent !important;
}

footer .nav-link {
    background: none !important;
    background-color: transparent !important;
}

/* Fix footer text visibility - override Bootstrap's text-body-secondary */
footer .text-body-secondary,
footer p.text-body-secondary {
    color: #6c757d !important;
    font-weight: 500;
}

/* Ensure footer doesn't overlap form elements on mobile */
@media (max-width: 480px) {
    footer {
        margin-top: 40px;
        padding-bottom: 20px;
    }
    
    /* Adjust login wrapper for mobile */
    .login-wrapper {
        min-height: calc(100vh - 70px - 160px); /* More space for footer on mobile */
        padding-bottom: 20px;
    }
    
    .login-wrapper .box {
        margin-bottom: 20px;
    }
}

/* Loading overlay styles */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4FA073;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Organization switcher loading state */
.org-option-loading {
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Link button styles */
.link-btn {
    background: none;
    border: none;
    color: #4FA073;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.link-btn:hover {
    opacity: 0.8;
}

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

/* MFA instructions styling */
.mfa-instructions {
    margin-bottom: 20px;
    color: #666;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #4FA073;
}

/* Password reset section styles */
.password-reset-section {
    margin-top: 20px;
    text-align: center;
}

.password-reset-section a {
    color: #4FA073;
    text-decoration: underline;
    font-size: 14px;
}

.password-reset-section a:hover {
    color: #3d8c5f;
}

.reset-password-form {
    margin-top: 20px;
}

.reset-password-form h4 {
    color: #2F3C50;
    margin-bottom: 10px;
    text-align: left;
}

.reset-password-form p {
    color: #666;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
}

.reset-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-reset {
    background-color: #4FA073;
    color: white;
    flex: 1;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    flex: 1;
    border: none;
    font-size: 1.25em;
    padding: 8px 30px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.reset-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.reset-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.reset-message .material-icons {
    font-size: 18px;
}

/* Home Page Layout */
.home-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
    font-family: 'Inter';
    background-image: url('https://sheepcrm-tundra-static.s3.eu-west-2.amazonaws.com/images/public/bg.svg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}

.home-box {
    margin: 0 auto 20px;
    padding: 0;
    float: none;
    width: 95%;
    max-width: 1200px;
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 1);
    flex-shrink: 0;
}

.home-content-wrap {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* Home Page Styles */

/* Organization Section - Flip Card */
.org-flip-container {
    perspective: 1000px;
    margin-bottom: 40px;
    cursor: pointer;
}

.org-flip-card {
    position: relative;
    width: 100%;
    height: 200px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.org-flip-card.flipped {
    transform: rotateY(180deg);
}

.org-flip-front, .org-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.org-flip-front {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.org-flip-back {
    background: linear-gradient(135deg, #f8fffe, #f0f8f4);
    transform: rotateY(180deg);
    text-align: left;
    justify-content: flex-start;
    overflow-y: auto;
}

/* Legacy org-section for fallback */
.org-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.org-logo-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: inline-block;
    margin-bottom: 15px;
    max-width: 200px;
    max-height: 80px;
    overflow: hidden;
}

.org-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.org-icon-container {
    background: linear-gradient(135deg, #4FA073, #72B38F);
    padding: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(79, 160, 115, 0.3);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.org-icon {
    color: white;
    font-size: 36px;
}

.org-name {
    margin: 0;
    color: #2F3C50;
    font-weight: 700;
    font-size: 28px;
}

.org-subtitle {
    color: #6c757d;
    margin: 8px 0 0 0;
    font-size: 16px;
    font-weight: 500;
}

/* Flip card back content - ingredients style */
.org-back-title {
    color: #2F3C50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    width: 100%;
}

.org-ingredients {
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.ingredients-section {
    margin-bottom: 15px;
}

.ingredients-section h4 {
    color: #4FA073;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 5px 0;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 3px;
}

.ingredients-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    line-height: 1.3;
}

.ingredients-list li {
    display: inline;
    color: #2F3C50;
    font-weight: 500;
}

.ingredients-list li:not(:last-child):after {
    content: ", ";
    color: #6c757d;
}

.ingredients-list li.no-items {
    color: #6c757d;
    font-style: italic;
    font-weight: 400;
}

.org-created {
    margin: 0;
    font-size: 12px;
    color: #2F3C50;
    font-weight: 500;
}


/* Organization Switcher */
.org-switcher {
    margin-bottom: 30px;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.org-switcher-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.org-switcher-current:hover {
    border-color: #4FA073;
    box-shadow: 0 4px 8px rgba(79, 160, 115, 0.15);
}

.org-switcher-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.org-switcher-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.org-switcher-name {
    font-size: 16px;
    color: #2F3C50;
    font-weight: 600;
    margin-top: 2px;
}

.org-switcher-arrow {
    color: #6c757d;
    font-size: 24px;
    transition: transform 0.2s ease;
}

.org-switcher-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    max-height: 300px;
    overflow-y: auto;
}

.org-switcher-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.org-switcher-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.org-switcher-option:last-child {
    border-bottom: none;
}

.org-switcher-option:hover {
    background-color: #f8f9fa;
}

.org-switcher-option.active {
    background-color: #f0f8f4;
    border-left: 3px solid #4FA073;
}

.org-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.org-option-name {
    font-size: 14px;
    color: #2F3C50;
    font-weight: 500;
}

.org-option-check {
    color: #4FA073;
    font-size: 18px;
}

/* User Welcome Section */
.user-welcome {
    background: linear-gradient(135deg, #f8fffe, #f0f8f4);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    text-align: center;
    border: 1px solid #e8f5e8;
}

.user-avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4FA073, #72B38F);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(79, 160, 115, 0.25);
}

.user-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0 !important;
}

/* Override external CSS for user avatar */
.user-avatar-container .user-avatar,
.user-avatar-container img.user-avatar {
    width: 100% !important;
    height: 100% !important;
    margin-bottom: 0 !important;
}

.user-avatar-initials {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.user-greeting {
    margin-bottom: 8px;
    color: #2F3C50;
    font-size: 24px;
}

.user-subtitle {
    color: #4FA073;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 16px;
}

/* Two-Step Login Styles */
.remember-me-section {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #2F3C50;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4FA073;
    border-color: #4FA073;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.user-identity-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fffe, #f0f8f4);
    border-radius: 12px;
    border: 1px solid #e8f5e8;
}

.user-identity-section .user-avatar-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    font-size: 24px;
}

.user-identity-section h3 {
    margin: 0 0 5px 0;
    color: #2F3C50;
    font-size: 20px;
}

.username-display {
    color: #4FA073;
    font-weight: 500;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.switch-user-link {
    margin: 0;
}

.switch-user-link a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.switch-user-link a:hover {
    color: #4FA073;
    text-decoration: underline;
}

/* Apps Section */
.apps-section {
    margin-bottom: 35px;
}

.apps-section-title {
    color: #4FA073;
    margin-bottom: 20px;
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #4FA073;
    padding-bottom: 8px;
}

.admin-title {
    color: #BD5A5A;
    border-bottom-color: #BD5A5A;
    font-size: 18px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1000px;
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

/* App Link Cards */
.app-link {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #2F3C50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-icon .material-icons {
    color: white;
    font-size: 24px;
}

.app-content {
    flex: 1;
    min-width: 0;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.app-title {
    margin: 0;
    color: #2F3C50;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.app-description {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-arrow {
    color: #ccc;
    font-size: 18px;
    margin-left: 8px;
}

/* App Badges */
.app-badge {
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-badge-alpha {
    background: #BD5A5A;
}

.app-badge-beta {
    background: #E8AE37;
}

.app-badge-dev {
    background: #9C27B0;
}

/* Account Information */
.account-info {
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 35px;
    text-align: left;
}

.account-info-title {
    margin-top: 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px 40px;
    font-size: 14px;
}

.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f4;
}

.account-info-item strong {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    flex-shrink: 0;
}

.account-info-item span {
    color: #2F3C50;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.status-authenticated {
    color: #28a745 !important;
}

.status-mfa-enabled {
    color: #4FA073 !important;
    font-weight: 500;
}

.status-mfa-disabled {
    color: #BD5A5A !important;
    font-weight: 500;
}


.password-error {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.password-error.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.password-reset-success-actions {
    margin-top: 20px;
    text-align: center;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
    margin-bottom: 15px;
}

.strength-meter {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.strength-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.strength-feedback {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

/* Security Warning */
.security-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-content .material-icons {
    color: #856404;
    font-size: 24px;
    margin-top: 2px;
}

.warning-text {
    flex: 1;
}

.warning-text strong {
    color: #856404;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.warning-text p {
    color: #856404;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.warning-text a {
    color: #4FA073;
    text-decoration: underline;
}

.warning-text a:hover {
    color: #3d8059;
}

/* Old Login Link */
.old-login-link {
    color: #6c757d !important;
    font-size: 13px;
    text-decoration: underline;
    font-style: italic;
}

.old-login-link:hover {
    color: #4FA073 !important;
}

/* Session Duration Options */
.session-duration-section {
    margin: 20px 0;
}

.session-duration-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #2F3C50;
}

.session-duration-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duration-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    user-select: none;
}

.duration-option:hover {
    background-color: #e9ecef;
    border-color: #4FA073;
}

.duration-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #4FA073;
}

.duration-text {
    color: #2F3C50;
    font-size: 14px;
    font-weight: 500;
}

.duration-option input[type="radio"]:checked + .duration-text {
    color: #4FA073;
}

.duration-option:has(input[type="radio"]:checked) {
    background-color: #f0f8f4;
    border-color: #4FA073;
}

/* Responsive design for session duration */
@media (min-width: 480px) {
    .session-duration-options {
        flex-direction: row;
        gap: 12px;
    }
    
    .duration-option {
        flex: 1;
        justify-content: center;
    }
}

/* Logout Options */
.logout-description {
    color: #6c757d;
    margin-bottom: 25px;
    text-align: center;
}

.logout-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.logout-option-form {
    margin: 0;
}

.logout-option {
    width: 100%;
}

.btn-logout-option {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    text-align: left;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 80px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-logout-option:hover {
    background-color: #e9ecef;
    border-color: #4FA073;
    transform: translateY(-1px);
}

.btn-logout-option .material-icons {
    font-size: 28px;
    color: #6c757d;
    min-width: 28px;
}

.logout-option-content {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.logout-option-content strong {
    display: block;
    color: #2F3C50;
    font-size: 16px;
    margin-bottom: 4px;
}

.logout-option-content small {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.btn-logout-option:hover .material-icons {
    color: #4FA073;
}

.btn-logout-option:hover .logout-option-content strong {
    color: #4FA073;
}

.logout-cancel {
    text-align: center;
    margin-top: 20px;
}

.timeout-notification {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #856404;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.timeout-notification .material-icons {
    font-size: 18px;
    color: #f39c12;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 10px 30px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: white;
    text-decoration: none;
}

/* Logout Success */
.logout-success {
    text-align: center;
    padding: 20px;
}

.logout-success-icon {
    margin-bottom: 15px;
}

.logout-success-icon .material-icons {
    font-size: 48px;
    color: #4FA073;
}

.logout-success h3 {
    color: #2F3C50;
    margin-bottom: 10px;
}

.logout-success-subtitle {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
}

/* Responsive design for logout options */
@media (min-width: 768px) {
    .logout-options {
        max-width: 500px;
        margin: 0 auto 30px auto;
    }
}

.password-reset-success-actions a {
    color: #4FA073;
    text-decoration: underline;
    font-weight: 500;
}

.password-reset-success-actions a:hover {
    color: #3d8c5f;
}