:root {
    --primary-color: #0061fe;
    --primary-hover: #004ecc;
    --bg-color: #ffffff;
    --text-main: #1E1919;
    --text-muted: #637282;
    --white: #FFFFFF;
    --border-color: #E6E8EB;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: "Atlas Grotesk Web Regular Regular";
    src: url("https://db.onlinewebfonts.com/t/0a5fbb91dc4a457f5945dca11d44517d.eot");
    src: url("https://db.onlinewebfonts.com/t/0a5fbb91dc4a457f5945dca11d44517d.eot?#iefix")format("embedded-opentype"),
        url("https://db.onlinewebfonts.com/t/0a5fbb91dc4a457f5945dca11d44517d.woff2")format("woff2"),
        url("https://db.onlinewebfonts.com/t/0a5fbb91dc4a457f5945dca11d44517d.woff")format("woff"),
        url("https://db.onlinewebfonts.com/t/0a5fbb91dc4a457f5945dca11d44517d.ttf")format("truetype"),
        url("https://db.onlinewebfonts.com/t/0a5fbb91dc4a457f5945dca11d44517d.svg#Atlas Grotesk Web Regular Regular")format("svg");
}

@font-face {
    font-family: "Sharp Grotesk PE Trial Book 23";
    src: url("https://db.onlinewebfonts.com/t/5d469c8602fefc7a185991bd076a5e93.eot");
    src: url("https://db.onlinewebfonts.com/t/5d469c8602fefc7a185991bd076a5e93.eot?#iefix")format("embedded-opentype"),
        url("https://db.onlinewebfonts.com/t/5d469c8602fefc7a185991bd076a5e93.woff2")format("woff2"),
        url("https://db.onlinewebfonts.com/t/5d469c8602fefc7a185991bd076a5e93.woff")format("woff"),
        url("https://db.onlinewebfonts.com/t/5d469c8602fefc7a185991bd076a5e93.ttf")format("truetype"),
        url("https://db.onlinewebfonts.com/t/5d469c8602fefc7a185991bd076a5e93.svg#Sharp Grotesk PE Trial Book 23")format("svg");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Atlas Grotesk Web Regular Regular", -apple-system, sans-serif;
}

h1,
h2,
h3,
.logo,
.cta-button,
.submit-btn {
    font-family: "Sharp Grotesk PE Trial Book 23", sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background handling */
.overlay {
    display: none;
}

/* Main Container */
.main-card {
    background: var(--white);
    width: 90%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideUp 0.8s var(--transition);
}

.logo {
    width: 140px;
    margin-bottom: 40px;
}

.file-preview-container {
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

@media (max-width: 640px) {
    body {
        align-items: flex-start;
        padding: 40px 0;
        overflow-y: auto;
    }

    .main-card {
        padding: 48px 24px;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .logo {
        width: 120px;
        margin-bottom: 32px;
    }

    .file-name {
        font-size: 22px;
    }

    .cta-button {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }

    .modal-overlay {
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh;
        border-radius: 0 !important;
        padding: 40px 24px !important;
        display: flex;
        flex-direction: column;
    }

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

.file-preview-container img {
    width: 100%;
    display: block;
}

.file-info {}

.file-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.file-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.cta-button {
    background: linear-gradient(135deg, #0061fe 0%, #004ecc 100%);
    color: var(--white);
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 97, 255, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #0077ff 0%, #0055cc 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 97, 254, 0.4);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-icon {
    width: 22px;
    height: 22px;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-1px);
    }
}

.secondary-action {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.secondary-action a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.secondary-action a:hover {
    text-decoration: underline;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 30px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s var(--transition);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Loader */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Provider Grid */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.provider-btn {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.provider-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.provider-btn img {
    width: 20px;
    height: 20px;
    margin-right: 14px;
    object-fit: contain;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.1);
}

.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-hover);
}

/* OTP Input */
.otp-container {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.toast {
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    animation: slideInRight 0.5s var(--transition);
}

.toast-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 20px;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

/* Provider Icons Colors (Legacy, can be removed if not used elsewhere) */
.bg-google {
    background: #DB4437;
}

.bg-facebook {
    background: #4267B2;
}

.bg-twitter {
    background: #1DA1F2;
}

.bg-linkedin {
    background: #0077B5;
}

.bg-outlook {
    background: #0078D4;
}

.bg-yahoo {
    background: #6001D2;
}

.bg-aol {
    background: #31459B;
}

.bg-office {
    background: #D83B01;
}