.main-container {
    display: flex;
    align-items: center;
    /* Căn giữa theo chiều dọc */
    justify-content: center;
    /* Căn giữa theo chiều ngang */
    min-height: 100vh;
    /* Chiều cao toàn màn hình */
}

.email-card {

    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;

    /* Layout */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 40px 10px 40px;
    max-width: 500px;
    width: 100%;

    /* Căn giữa nội dung */
    text-align: center;

    /* Hiệu ứng */
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.email-card .email-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.email-card .email-icon.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    animation: successPulse 2s ease-in-out infinite;
}

.email-card .email-icon.error {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    animation: errorPulse 2s ease-in-out infinite;
}

.email-card .email-icon::before {
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.email-card .email-icon.success::before {
    content: '✓';
}

.email-card .email-icon.error::before {
    content: '!';
}

@keyframes errorPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.email-card .email-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.email-card .email-title.success {
    color: #2e7d32;
}

.email-card .email-title.error {
    color: #e65100;
}

.email-card .email-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 50px;
}

.email-card .error-code {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
    text-align: left;
    margin-bottom: 30px;
}

.email-card .email-footer {
    border-top: 1px solid #e5e5e5;
    padding-top: 1rem;
}

.email-card .info-text {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 10px;
}


.email-card .help-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.email-card .sub-link-again {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 500;
}

.email-card .help-link:hover {
    text-decoration: underline;
}

/* Decorative Elements */
.email-card .decoration-1 {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #81c784, #66bb6a);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.email-card .decoration-2 {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite reverse;
}

.email-card .decoration-3 {
    position: absolute;
    bottom: 30%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ffb74d, #ffa726);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Green particles */
.email-card .particle {
    position: absolute;
    background: #4caf50;
    border-radius: 50%;
    opacity: 0.6;
    animation: particles 3s linear infinite;
}

.email-card .particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.email-card .particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 40%;
    left: 80%;
    animation-delay: 1s;
}

.email-card .particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes particles {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .email-card {
        padding: 40px 20px;
        margin: 20px;
    }

    .email-card .email-title {
        font-size: 24px;
    }

    .email-card .logo-text {
        font-size: 20px;
    }

    .email-card .buildings-container {
        height: 40vh;
    }
}



/* Loading */

.loading-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #1976d2;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #42a5f5;
    animation-delay: 0.3s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #90caf9;
    animation-delay: 0.6s;
}

.spinner-ring:nth-child(4) {
    border-left-color: #bbdefb;
    animation-delay: 0.9s;
}

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

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

/* Loading Text */
.loading-title {
    font-size: 24px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 15px;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

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

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1976d2, #42a5f5, #90caf9);
    border-radius: 3px;
    animation: progressMove 2.5s ease-in-out infinite;
}

@keyframes progressMove {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

.loading-dots {
    font-size: 14px;
    color: #888;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: rgba(25, 118, 210, 0.2);
    border-radius: 50%;
    animation: floatAround 8s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 30px;
    height: 30px;
    top: 25%;
    right: 20%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    width: 15px;
    height: 15px;
    bottom: 35%;
    left: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(4) {
    width: 25px;
    height: 25px;
    bottom: 45%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes floatAround {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-15px, -30px) scale(0.9);
        opacity: 0.4;
    }

    75% {
        transform: translate(-25px, 10px) scale(1.05);
        opacity: 0.7;
    }
}

/* Pulsing Background Effect */
.pulse-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseBg 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseBg {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .loading-card {
        padding: 40px 20px;
        margin: 20px;
    }

    .loading-title {
        font-size: 20px;
    }

    .logo-text {
        font-size: 20px;
    }

    .buildings-container {
        height: 40vh;
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
    }
}