:root {
    --primary-color: #0a4275;
    --secondary-color: #0d47a1;
    --accent-color: #1565c0;
    --success-color: #00796b;
    --error-color: #c62828;
    --warning-color: #ef6c00;
    --light-color: #f5f9ff;
    --dark-color: #102a43;
    --border-color: #d0d9e4;
}

body {
    background: linear-gradient(135deg, #e8f5fe 0%, #d0e6fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
}

.verification-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.header img {
    max-height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.header h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: calc(1.5rem + 0.5vw);
}

.header p {
    color: #6c757d;
    font-size: calc(0.875rem + 0.1vw);
}

.certificate-form {
    margin-bottom: 30px;
    background: rgba(10, 66, 117, 0.03);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 66, 117, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 66, 117, 0.3);
}

.certificate-details {
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f9fa;
    display: none;
    transition: all 0.5s;
    border: 1px solid #e0e0e0;
    position: relative;
}

.certificate-details.show {
    display: block;
}

.verified-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--success-color);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.verified-badge.show {
    opacity: 1;
    transform: scale(1);
}

.verified-badge i {
    font-size: 42px;
    margin-bottom: 5px;
}

.verified-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.certificate-field {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.certificate-field:last-child {
    border-bottom: none;
}

.field-label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
    font-size: 0.875rem;
}

.field-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
    animation-duration: 0.5s;
    margin-bottom: 20px;
    border: none;
}

.alert-danger {
    background-color: #ffebee;
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-warning {
    background-color: #fff8e1;
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 121, 107, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 121, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 121, 107, 0);
    }
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-success:hover {
    background-color: #00695c;
    border-color: #00695c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 121, 107, 0.3);
}

.certificate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.certificate-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.animated-checkmark {
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    animation: draw 1s forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: confetti-fall 4s ease-in-out forwards;
    opacity: 0;
    z-index: 1;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(700px) rotate(720deg);
        opacity: 0;
    }
}

.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid rgba(10, 66, 117, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

.official-stamp {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    opacity: 0.2;
    pointer-events: none;
    top: 8em;
    left: 14em;
}

/* For certificate details field values */
@media (max-width: 768px) {
    .field-value {
        font-size: 1rem;
    }
}

/* For smaller mobile screens */
@media (max-width: 576px) {
    .verification-container {
        padding: 25px 20px;
    }

    .certificate-form {
        padding: 20px 15px;
    }

    .certificate-details {
        padding: 20px 15px;
    }

    .verified-badge {
        width: 70px;
        height: 70px;
        top: 50px;
        right: 15px;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .field-value {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .official-stamp {
        width: 150px;
        height: 150px;
        left: 5rem;
        top: 14rem;
        bottom: 0;
        right: 0;
        opacity: 0.2;
    }
}

/* Watermark */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 8rem;
    font-weight: 700;
    color: rgba(10, 66, 117, 0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* Invalid shake animation */
.shake-animation {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Access denied icon animation */
.access-denied {
    color: var(--error-color);
    font-size: 24px;
    margin-right: 10px;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
.verification-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #6c757d;
}

/* Official security seal */
.security-seal {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 50px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #495057;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.security-seal i {
    color: var(--success-color);
    margin-right: 5px;
}