* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

 @keyframes spin {
    from {
        transform: rotate(0deg); /* Starts at 0 degrees rotation */
    }
    to {
        transform: rotate(360deg); /* Ends at 360 degrees (a full circle) */
    }
}

.button-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    svg {
        fill: white;
        animation-name: spin;
        animation-duration: 2s; /* Duration for one full spin */
        animation-iteration-count: infinite; /* Loops the animation indefinitely */
        animation-timing-function: linear; /* Ensures constant speed */
    }
}


body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.logo {
    max-width: 200px;
    margin-bottom: 3rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 4px;
    background: #e1e4e8;
    margin: 1rem auto 2rem;
    width: 100px;
    border-radius: 2px;
    position: relative;
}

.fifty::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: #0095ff;
    border-radius: 2px;
}

.complete::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #0095ff;
    border-radius: 2px;
}

.login-text {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.login-text a {
    color: #0095ff;
    text-decoration: none;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #0095ff;
}

.form-control.error {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background-color: #00A2E8;
    background-image: linear-gradient(to left,#3F48CC,#00A2E8);
    color: white;
    margin-bottom: 1rem;
    transition: background-image 0.2s;
}

a.btn {
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background-color: #3F48CC;
    background-image: linear-gradient(to left,#00A2E8,#3F48CC); 
}



.terms {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.terms a {
    color: #0095ff;
    text-decoration: none;
}

.copyright {
    margin-top: 2rem;
    color: #666;
    font-size: 0.875rem;
}
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 400px;
}

h1 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.signup-text {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #4b5563;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.signup-text a {
    color: #0ea5e9;
    text-decoration: none;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9fafb;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #0ea5e9;
    background-color: white;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
}

.login-button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #0096ff, #5c4dff);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 1rem 0;
}

.login-button:hover {
    background-color: linear-gradient(to left, #0096ff, #5c4dff);
}

.login-button.active {
    background-color: #0ea5e9;
}

.login-button.active:hover {
    background-color: #0284c7;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
}

.forgot-password {
    color: #0ea5e9;
    text-decoration: none;
}

/* .copyright {
    margin-top: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
} */

.error-message {
    color: #ef4444;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: none;
}

.success-message {
    color: #67B55A;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.main {
    border: 1px solid #cf5c5b;
    background-color: #fccaca;
    padding: 0.6em;
    border-radius: 5px;
    margin-bottom: 1em;
    display: none;
}

.error-message.main > .left {
    flex:10%;
    text-align: center;
    font-size: 1rem;
    position: relative;
}

.error-message.main > .left > span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.error-message.main > .right {
    flex:90%;
}

.description {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.5;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-wrapper {
    position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    padding-left: 2.5rem;
    position: relative;
}

.checkbox-label:before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #e1e4e8;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label {
    border-color: #0095ff;
    background-color: #f0f9ff;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label:before {
    background-color: #0095ff;
    border-color: #0095ff;
}

@media (max-width: 768px) {
    body {
        padding: 1.5rem;
        justify-content: flex-start;
        background-color: white;
    }

    .login-container {
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .logo {
        margin-bottom: 3rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .signup-text {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    input[type="text"],
    input[type="password"] {
        background-color: #f9fafb;
        border: 1px solid #e5e7eb;
    }

    .login-button {
        margin: 1.5rem 0;
    }

    .card {
        padding: 1.5rem;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .logo {
        max-width: 160px;
        margin: 2rem 0;
    }

    .form-control {
        background-color: #f8f9fa;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.25rem;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}


.underlay {
    position: fixed;
    z-index: 51;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0,0,0,0.5);
}

.icon {
    width: 70px;
    height: 70px;
    color: #FFB979;
    border: 3px solid #FFB979;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2em;
}

.underlay > .card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    border-radius: 12px;
    padding-left: 3em;
    padding-right: 3em;
}

.underlay h3 {
    margin-bottom: 1em;
} 

.underlay p {
    margin-bottom: 2em;
} 

.underlay .btn {
    border-radius: 25px;
    padding-left: 2em;
    padding-right: 2em;
}

.disabled {
    background: #CECECE;
    background-image: none;
    color: #848484;
}

.disabled:hover {
    background: #CECECE;
    background-image: none;
}

.notify {
    font-size: 10pt;
    border-radius: 10px;
    position: fixed;
    right: 5px;
    bottom: 5px;
    width: 350px;
    z-index: 40;
    box-shadow: 0px -3px 6px gray;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    transition: display 2s linear 1s;
}

.notify > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.notify > div > div {
    padding: 6px;
}

.notify-success {
    border: 3px solid green;
}

.notify-fail {
    border: 3px solid #ef4444;
}

.notify .icon {
    width: 35px;
    height: 35px;
    border-radius: 25px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0px;
}

.notify a, .notify a:link, .notify a:hover, .notify a:focus {
    color: white;
    text-decoration: none;
}

.notify .success {
    border: 2px solid green;
    color: green;
}

.notify .fail {
    border: 2px solid #ef4444;
    color: #ef4444;
}