﻿.verification-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
}

.verification-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
}

.panel-header {
    background: linear-gradient(135deg, #0C4930 0%, #072b1c 100%);
    color: white;
    padding: 20px 16px;
    text-align: center;
}

.security-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .security-icon i {
        font-size: 24px;
    }

.panel-header h2 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.panel-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.95;
    line-height: 1.3;
}

.panel-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
}

.code-input-group {
    margin-bottom: 16px;
    flex-grow: 1;
}

.code-input {
    height: 44px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 4px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}

    .code-input:focus {
        border-color: #0C4930;
        box-shadow: 0 0 0 2px rgba(12, 73, 48, 0.1);
        outline: none;
    }

    .code-input::placeholder {
        letter-spacing: normal;
        font-size: 14px;
        color: #999;
    }

.trust-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.trust-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

    .trust-option input[type="checkbox"] {
        margin-right: 8px;
        width: 16px;
        height: 16px;
        cursor: pointer;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .trust-option label {
        cursor: pointer;
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
        font-weight: 500;
        color: #333;
        flex-grow: 1;
    }

.trust-info {
    display: flex;
    align-items: flex-start;
    padding: 8px;
    background: #e8f5ee;
    border-left: 3px solid #0C4930;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 11px;
    color: #072b1c;
    line-height: 1.4;
}

    .trust-info i {
        margin-right: 6px;
        font-size: 12px;
        flex-shrink: 0;
        margin-top: 1px;
    }

.verify-button {
    width: 100%;
    height: 42px;
    background: linear-gradient(135deg, #0C4930 0%, #072b1c 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    flex-shrink: 0;
}

    .verify-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(12, 73, 48, 0.25);
    }

    .verify-button:active {
        transform: translateY(0);
    }

    .verify-button i {
        margin-right: 6px;
        font-size: 13px;
    }

.back-link {
    text-align: center;
    margin-top: 16px;
    flex-shrink: 0;
}

    .back-link a {
        color: #0C4930;
        text-decoration: none;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        transition: color 0.2s ease;
        padding: 6px 12px;
        border-radius: 4px;
        background: #f8f9fa;
    }

        .back-link a:hover {
            color: #072b1c;
            background: #e9ecef;
            text-decoration: none;
        }

        .back-link a i {
            margin-right: 4px;
            font-size: 11px;
        }

.resend-code {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
}

    .resend-code a {
        color: #0C4930;
        text-decoration: none;
        font-weight: 500;
        margin-left: 4px;
    }

        .resend-code a:hover {
            text-decoration: underline;
        }

.validation-summary-errors {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 14px;
    color: #c33;
    font-size: 12px;
    line-height: 1.3;
    flex-shrink: 0;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 16px;
    }

    .validation-summary-errors li {
        margin-bottom: 3px;
    }

        .validation-summary-errors li:last-child {
            margin-bottom: 0;
        }

.validation-summary-valid {
    display: none !important;
}

.text-danger {
    color: #dc3545;
    font-size: 11px;
    margin-top: 3px;
    display: block;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 12px;
}

/* Ensure everything fits without scrolling */
html, body {
    height: 100%;
    overflow: auto;
}

.login-layout-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
    box-sizing: border-box;
    background: #f5f7fa;
}

/* Compact spacing */
.panel-body form > *:not(:last-child) {
    margin-bottom: 14px;
}

/* Responsive adjustments for smaller screens */
@media (max-height: 700px) {
    .login-layout-wrapper {
        padding: 10px;
        align-items: flex-start;
        min-height: 100vh;
        height: auto;
    }

    .verification-container {
        margin-top: 10px;
        max-width: 360px;
    }

    .panel-header {
        padding: 16px 12px;
    }

    .security-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

        .security-icon i {
            font-size: 20px;
        }

    .panel-header h2 {
        font-size: 16px;
    }

    .panel-header p {
        font-size: 11px;
    }

    .panel-body {
        padding: 16px 12px;
    }

    .code-input {
        height: 40px;
        font-size: 16px;
        letter-spacing: 3px;
    }

    .verify-button {
        height: 40px;
        font-size: 13px;
    }

    .trust-section {
        padding: 10px;
        margin-bottom: 12px;
    }

    .trust-option label {
        font-size: 11px;
    }

    .trust-info {
        font-size: 10px;
        padding: 6px;
    }
}

@media (max-height: 600px) {
    .login-layout-wrapper {
        padding-top: 5px;
    }

    .verification-container {
        max-width: 340px;
    }

    .panel-header {
        padding: 14px 10px;
    }

    .panel-body {
        padding: 14px 10px;
    }

    .code-input-group {
        margin-bottom: 12px;
    }

    .code-input {
        height: 38px;
        font-size: 15px;
    }

    .trust-section {
        padding: 8px;
        margin-bottom: 10px;
    }

    .verify-button {
        height: 38px;
        margin-top: 6px;
    }

    .back-link {
        margin-top: 12px;
    }

        .back-link a {
            font-size: 11px;
            padding: 5px 10px;
        }

    .resend-code {
        font-size: 10px;
        margin-top: 10px;
    }
}

@media (max-height: 500px) {
    .verification-panel {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .panel-body {
        min-height: auto;
    }

    .code-input-group {
        flex-grow: 0;
    }
}

/* For very small width screens */
@media (max-width: 360px) {
    .verification-container {
        padding: 10px;
    }

    .panel-header h2 {
        font-size: 16px;
    }

    .code-input {
        font-size: 16px;
        letter-spacing: 2px;
    }
}
