/* Aviontex PKI Portal - Shared Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-family: Arial, sans-serif;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
}

.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    max-width: 800px;
    height: auto;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

.logo-container {
    margin-top: 60px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.8s ease-in;
}

.logo-container img {
    max-width: 200px;
    width: 30%;
    min-width: 50px;
    height: auto;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-in 0.3s both;
}

.headline {
    margin-top: 40px;
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.subheadline {
    margin-top: 10px;
    text-align: center;
    color: #666;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.3px;
}

.card-container {
    margin-top: 30px;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(47, 105, 193, 0.1);
    min-width: 400px;
    transition: all 0.3s ease;
}

.card-container:hover {
    box-shadow: 0 12px 48px rgba(47, 105, 193, 0.15);
}

.card-title {
    text-align: center;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 0.3px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6600;
}

/* Login Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #2F69C1;
    box-shadow: 0 0 0 3px rgba(47, 105, 193, 0.1);
}

.btn-login {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #2F69C1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #4a7ed1;
    box-shadow: 0 4px 12px rgba(47, 105, 193, 0.3);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #fcc;
}

.security-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* Logout Button */
.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #2F69C1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.logout-btn:hover {
    background-color: #4a7ed1;
    box-shadow: 0 4px 12px rgba(47, 105, 193, 0.3);
}

/* Download Select Styles */
.download-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #2F69C1;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232F69C1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.download-select:hover {
    border-color: #4a7ed1;
    box-shadow: 0 4px 12px rgba(47, 105, 193, 0.2);
}

.download-select:focus {
    border-color: #2F69C1;
    box-shadow: 0 0 0 3px rgba(47, 105, 193, 0.2);
}

.download-select option {
    padding: 12px;
}

.download-select optgroup {
    font-weight: 600;
    color: #2F69C1;
}

/* Session Expired & Access Notice Styles */
.icon-container {
    margin-top: 6vh;
    text-align: center;
}

.icon-clock {
    font-size: 80px;
    opacity: 0.9;
}

.icon-shield {
    font-size: 80px;
    color: #2F69C1;
    opacity: 0.9;
}

.message-box {
    margin-top: 4vh;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(47, 105, 193, 0.1);
    max-width: 600px;
    text-align: center;
}

.message-text {
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn-return {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 40px;
    background-color: #2F69C1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(47, 105, 193, 0.2);
}

.btn-return:hover {
    background-color: #4a7ed1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 105, 193, 0.3);
}

.contact-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.contact-title {
    color: #2F69C1;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-details {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.contact-link {
    color: #2F69C1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #4a7ed1;
    text-decoration: underline;
}

.contact-email {
    color: #2F69C1;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-email:hover {
    color: #4a7ed1;
    text-decoration: underline;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    gap: 0;
}

.tab-row-top {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.tab-row-top .tab-button {
    border-radius: 8px 8px 0 0;
}

.tab-row-bottom {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.tab-row-bottom .tab-button:first-child {
    border-radius: 0;
}

.tab-row-bottom .tab-button:last-child {
    border-radius: 0;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background-color: #e8f0fd;
    color: #2F69C1;
}

.tab-button.active {
    background-color: #ffffff;
    color: #2F69C1;
    border-bottom: 3px solid #2F69C1;
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeInTab 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2F69C1;
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Tablets */
@media (max-width: 768px) {
    .background-logo {
        width: 80vw;
    }

    .logo-container {
        margin-top: 40px;
    }

    .logo-container img {
        max-width: 300px;
        width: 40%;
    }

    .headline {
        font-size: 20px;
        margin-top: 30px;
    }

    .subheadline {
        font-size: 14px;
        margin-top: 8px;
    }

    .card-container {
        margin-top: 25px;
        padding: 30px 25px;
        min-width: 90%;
        max-width: 380px;
    }

    .card-title {
        font-size: 16px;
    }

    .download-select {
        font-size: 15px;
        padding: 12px 15px;
        padding-right: 35px;
    }

    .logout-btn {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 13px;
    }

    .icon-container {
        margin-top: 5vh;
    }

    .icon-clock,
    .icon-shield {
        font-size: 60px;
    }

    .message-box {
        margin-top: 3vh;
        padding: 30px 25px;
        max-width: 90%;
    }

    .message-text {
        font-size: 16px;
    }

    .contact-title {
        font-size: 15px;
    }

    .contact-details {
        font-size: 14px;
    }

    .contact-email {
        font-size: 18px;
    }

    .tab-button {
        font-size: 14px;
        padding: 12px 15px;
    }

    footer {
        font-size: 12px;
        padding: 12px 15px;
    }
}

/* Responsive Design - Mobile (iPhone optimized) */
@media (max-width: 480px) {
    body {
        padding-top: 40px;
    }

    .background-logo {
        width: 90vw;
    }

    .logo-container {
        margin-top: 20px;
    }

    .logo-container img {
        max-width: 200px;
        width: 50%;
    }

    .headline {
        font-size: 18px;
        margin-top: 20px;
        padding: 0 20px;
    }

    .subheadline {
        font-size: 13px;
        margin-top: 8px;
        padding: 0 20px;
    }

    .card-container {
        margin-top: 20px;
        padding: 25px 20px;
        min-width: 85%;
    }

    .download-select {
        font-size: 14px;
        padding: 10px 12px;
        padding-right: 32px;
    }

    .icon-clock,
    .icon-shield {
        font-size: 50px;
    }

    .message-box {
        padding: 25px 20px;
    }

    .message-text {
        font-size: 15px;
    }

    .tab-button {
        font-size: 13px;
        padding: 10px 12px;
    }

    footer {
        font-size: 11px;
        padding: 10px;
    }
}

/* Coming Soon Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in;
}

.modal.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    border: 2px solid #2F69C1;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #2F69C1;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-title {
    color: #2F69C1;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-button {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #2F69C1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background-color: #4a7ed1;
    box-shadow: 0 4px 12px rgba(47, 105, 193, 0.3);
    transform: translateY(-2px);
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 25px;
        max-width: 90%;
    }

    .modal-icon {
        font-size: 48px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }

    .modal-icon {
        font-size: 40px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-text {
        font-size: 14px;
    }

    .modal-button {
        padding: 10px 30px;
        font-size: 15px;
    }
}