/* Custom Order Flow Styles */

/* Modal Override/Customization */
.uk-modal-dialog-large {
    width: 900px !important;
    padding: 0 !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.split-screen-container {
    display: flex;
    /* This swaps the order: QR (2nd div) shows on left, Login (1st div) shows on right */
    flex-direction: row-reverse;
    min-height: 500px;
    background: white;
}

/* Login Side (Now on the Right) */
.login-side {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.login-header {
    margin-bottom: 30px;
}

.login-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.custom-input-group {
    margin-bottom: 20px;
}

.custom-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.custom-input:focus {
    border-color: #f96d0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 109, 11, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #f96d0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: #e05e00;
}

/* QR Code Side (Now on the Left) */
.qr-side {
    width: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    border-right: 1px solid #eee;
    /* Added border to the right since it's now on the left side */
}

.qr-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 300px;
    width: 100%;
    transition: transform 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-5px);
}

.qr-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.qr-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.qr-text p {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .uk-modal-dialog-large {
        width: 95% !important;
        max-width: 400px;
        /* Keeps the modal slim on mobile */
        margin: 10px auto;
        border-radius: 12px;
    }

    .split-screen-container {
        /* Change from row-reverse to column-reverse */
        /* This forces the QR-Side (2nd div) to the TOP and Login-Side (1st div) to the BOTTOM */
        flex-direction: column-reverse;
        min-height: auto;
    }

    .qr-side,
    .login-side {
        width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
    }

    .qr-side {
        border-right: none;
        border-bottom: 1px solid #eee;
        /* Visual divider */
    }

    .qr-card {
        max-width: 200px;
        /* Slightly smaller for mobile screens */
    }

    .login-header h2 {
        font-size: 22px;
        text-align: center;
    }

    .login-header p {
        text-align: center;
    }
}

/* Document Portal Styles (Rest of your existing code) */
.portal-body {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.doc-card {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doc-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #fff0eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.doc-icon {
    font-size: 40px;
    color: #f96d0b;
}

.doc-meta h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.doc-meta p {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

.doc-details {
    width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.doc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #efefef;
}

.doc-row:last-child {
    border-bottom: none;
}

.doc-label {
    color: #888;
    font-weight: 500;
}

.doc-value {
    color: #333;
    font-weight: 600;
}

.view-btn {
    background: #f96d0b;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(249, 109, 11, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-btn:hover {
    background: #e05e00;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(249, 109, 11, 0.4);
    color: white;
    text-decoration: none;
}

/* Document Portal Styles */
.portal-body {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.doc-card {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doc-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #fff0eb;
    /* Light orange tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.doc-icon {
    font-size: 40px;
    color: #f96d0b;
}

.doc-meta h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.doc-meta p {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

.doc-details {
    width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.doc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #efefef;
}

.doc-row:last-child {
    border-bottom: none;
}

.doc-label {
    color: #888;
    font-weight: 500;
}

.doc-value {
    color: #333;
    font-weight: 600;
}

.view-btn {
    background: #f96d0b;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(249, 109, 11, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-btn:hover {
    background: #e05e00;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(249, 109, 11, 0.4);
    color: white;
    text-decoration: none;
}