﻿
body, html {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
}

body, html {
    height: 100%;
}


@media (max-height: 768px) {
    body, html {
        height: auto;
    }
}

    body {
        font-family: "Montserrat";
        font-size: 16px;
        line-height: 1.42857143;
    }


    .registration-container {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .login-logo img {
        width: 240px;
        margin-bottom: 20px;
    }

    .spr-blue {
        color: #33afff;
    }

    .ui-state-error {
        color: red;
        font-size: 0.9em;
        margin-top: 5px;
        padding: 5px;
    }

    .spr-form.spr-form {
        width: 100%;
        float: left;
        clear: both;
    }



.login-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

.login-logo img {
    width: 240px;
    margin-bottom: 20px;
}

.login-form > div {
    margin: 10px 0;
}

.login-form label {
    display: block;
    text-align: left;
}

.login-form input {
    width: calc(100% - 22px);
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #33afff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .login-form button:hover {
        background-color: #2793d8;
    }

.error {
    color: red;
}

a {
    text-decoration: none;
    color: #2793d8;
    font-size: .9em;
}

.divider {
    text-align: center;
    flex: .2 0 auto;
    margin: 0;
    height: 12px;
}

.divider-wrapper {
    display: flex;
    flex-direction: row;
    text-transform: uppercase;
    border: none;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    padding: 24px 0 0;
    align-items: center;
    justify-content: center;
    width: 320px;
    vertical-align: baseline;
    margin-bottom: 24px;
}

    .divider-wrapper:before, .divider-wrapper:after {
        content: "";
        border-bottom: 1px solid #c2c8d0;
        flex: 1 0 auto;
        height: .5em;
        margin: 0;
    }

.social-btn {
    position: relative;
    width: 320px;
    border: 1px solid #c2c8d0;
    border-radius: 6px;
    font-size: 16px;
    align-items: center;
    background-color: #fff;
    height: 52px;
    transition: box-shadow .15 ease-in-out,background-color .15s ease-in-out;
    cursor: pointer;
    color: #2d333a;
    margin-bottom: 8px;
    display: flex;
    outline: 0;
}

    .social-btn:hover {
        background-color: #eef6fc; /* Light blue highlight on hover */
        border-color: #3DC5E7; /* Blue border on hover */
    }

.social-btn {
    padding: 0 8px 0 52px;
}

.social-logo-wrapper {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translate(-50%) translateY(-50%);
}

.social-logo {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.social-text {
    text-align: left;
    position: relative;
}

/* Add these MFA setup styles to account.css */

/* MFA Setup Container - matches login-container style */
.mfa-setup-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* MFA Setup Steps */
.mfa-setup-step {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #c2c8d0;
    border-radius: 8px;
    background-color: #fff;
    text-align: left;
}

.mfa-step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #33afff;
    color: white;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

/* QR Code Section */
.mfa-qr-container {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    margin: 20px 0;
}

.mfa-secret-key {
    background-color: #eef6fc;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin: 15px 0;
    border: 1px solid #c2c8d0;
}

/* MFA Verification Form - matches login-form style */
.mfa-verification-form {
    background-color: #eef6fc;
    border: 1px solid #3DC5E7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.mfa-verification-input {
    text-align: center;
    font-size: 18px;
    letter-spacing: 3px;
    width: 200px;
    margin: 0 auto;
    display: block;
    padding: 10px;
    border: 1px solid #c2c8d0;
    border-radius: 5px;
}

.mfa-setup-button {
    background-color: #33afff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.15s ease-in-out;
}

    .mfa-setup-button:hover {
        background-color: #2793d8;
    }

/* App Downloads Section */
.mfa-app-downloads {
    margin-top: 20px;
}

.mfa-app-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #c2c8d0;
    border-radius: 8px;
    background-color: #f4f4f4;
}

.mfa-app-info {
    flex: 1;
}

    .mfa-app-info h4 {
        margin: 0 0 5px 0;
        color: #2d333a;
        font-size: 16px;
    }

    .mfa-app-info p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

.mfa-app-badges {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left:10px;
}

    .mfa-app-badges a {
        display: inline-block;
        transition: opacity 0.2s;
    }

        .mfa-app-badges a:hover {
            opacity: 0.8;
        }

/* MFA Warning Box */
.mfa-warning-box {
    background-color: #eef6fc;
    border: 1px solid #3DC5E7;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

/* Responsive design for mobile */
@media (max-width: 600px) {
    .mfa-setup-container {
        max-width: 100%;
        margin: 10px;
        padding: 15px;
    }

    .mfa-app-option {
        flex-direction: column;
        text-align: center;
    }

    .mfa-app-info {
        margin-bottom: 15px;
    }

    .mfa-app-badges {
        justify-content: center;
    }

        .mfa-app-badges img {
            height: 35px !important;
            margin: 0 5px !important;
        }
}

.mfa-instructions {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.mfa-code-input {
    text-align: center;
    font-size: 18px;
    letter-spacing: 3px;
}

.mfa-instructions {
    max-width: 300px;
    margin: 0 auto 20px auto;
    padding: 15px;
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    text-align: left;
    word-wrap: break-word;
    line-height: 1.4;
}

.mfa-code-input {
    text-align: center;
    font-size: 18px;
    letter-spacing: 3px;
    max-width: 150px;
    margin: 0 auto;
    display: block;
}


.terms-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.terms-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.terms-modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #3DC5E7 0%, #2a9fc7 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .terms-modal-header h2 {
        margin: 0;
        font-size: 24px;
    }

.terms-modal-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

    .terms-modal-close:hover {
        transform: scale(1.2);
    }

.terms-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 200px);
    background: #fff;
}

    .terms-modal-body::-webkit-scrollbar {
        width: 12px;
    }

    .terms-modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .terms-modal-body::-webkit-scrollbar-thumb {
        background: #3DC5E7;
        border-radius: 10px;
    }

        .terms-modal-body::-webkit-scrollbar-thumb:hover {
            background: #2a9fc7;
        }

.terms-modal-footer {
    padding: 20px 30px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#AgreeToMainTerms:disabled + label, #AgreeToSubscriptionTerms:disabled + label {
    color: #999;
    cursor: not-allowed;
}

#AgreeToMainTerms:enabled + label, #AgreeToSubscriptionTerms:enabled + label {
    color: #333;
    cursor: pointer;
}

#openTermsModalBtn, #openSubscriptionTermsModalBtn {
    background: #3DC5E7;
    color: white;
    font-weight: 600;
}

    #openTermsModalBtn:hover, #openSubscriptionTermsModalBtn:hover {
        background: #2a9fc7;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .terms-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .terms-modal-header,
    .terms-modal-body,
    .terms-modal-footer {
        padding: 15px;
    }

    .terms-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
}
