* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.3); }
    70% { box-shadow: 0 0 0 10px rgba(0, 102, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

h1, h2, h3, .btn-primary, .slogan, .footer-column h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(to right, #003366, #00509e);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease;
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    animation: pulse 2s infinite ease-in-out;
}

header .logo i {
    font-size: 28px;
    color: #ffd700;
    animation: pulse 2s infinite ease-in-out;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.slogan {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    animation: fadeIn 1.5s ease;
}

main {
    flex: 1;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
    color: #003366;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

.auth-card h2 i {
    color: #0066cc;
    margin-right: 8px;
}

.form-group {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.6s;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.form-group label i {
    width: 20px;
    color: #0066cc;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: #0066cc;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    animation: glow 1s ease-in-out;
}

.form-group.remember {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.8s;
}

.form-group.remember input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1);
}

.form-group.remember label {
    font-size: 14px;
    color: #555;
}

button.btn-primary {
    width: 100%;
    padding: 14px;
    background: #003366;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.9s;
}

button.btn-primary:hover {
    background: #002244;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.form-actions {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 6px;
    width: 100%;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 1.1s;
}

.form-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #0066cc;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.form-actions a:nth-child(1) {
    animation-delay: 1.2s;
}

.form-actions a:nth-child(2) {
    animation-delay: 1.3s;
}

.form-actions a:hover {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-2px);
}

.form-actions a i {
    font-size: 14px;
}

footer {
    background-color: #003366;
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
    padding: 30px 0 20px;
    margin-top: auto;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 1.0s;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 1.1s;
}

.footer-column h3 {
    font-size: 15px;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-column p,
.footer-column ul,
.footer-column li {
    margin: 0 0 8px 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #ccc;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column i {
    width: 18px;
    margin-right: 8px;
    color: #66aaff;
}

.menu ul {
    padding-left: 0;
}

.menu li {
    position: relative;
    padding-left: 20px;
}

.menu li::before {
    content: "";
}

.menu li i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #66aaff;
    margin-right: 10px;
}

.footer-column.social {
    text-align: center;
    width: 100%;
}

.footer-column.social h3 {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 1.2s;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #66aaff;
    border-radius: 50%;
    color: #66aaff;
    font-size: 18px;
    background: transparent;
    transition: all 0.3s ease;
    text-align: center;
    opacity: 0;
    animation: floatIn 0.6s ease forwards;
}

.social-icon:nth-child(1) {
    animation-delay: 1.3s;
}

.social-icon:nth-child(2) {
    animation-delay: 1.4s;
}

.social-icon i {
    transform: translateX(3px);
    transition: transform 0.1s ease;
}

.social-icon:hover {
    background-color: #66aaff;
    color: #fff;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 15px rgba(102, 170, 255, 0.4);
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    color: #aaa;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 1.5s;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-columns {
        flex-direction: column;
        gap: 20px;
    }

    .footer-column {
        min-width: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 25px 0 18px;
    }

    .footer-column h3 {
        font-size: 14px;
    }

    .footer-column p,
    .footer-column li {
        font-size: 12px;
    }

    .copyright {
        font-size: 11px;
        padding: 12px 0;
    }
}

@media print {
    header, footer, .form-actions {
        page-break-inside: avoid;
    }
}