/* Moteru Login Page - Futuristic Blue Design */

:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --light-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --dark-blue: #1e3a8a;
    --glow-blue: #3b82f6;
    --bg-gradient-start: #e0f2fe;
    --bg-gradient-end: #bae6fd;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

/* Login Box */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.3),
        0 0 60px rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s ease-out;
    box-sizing: border-box;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
}

/* Login Description */
.login-description {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

/* Input Fields */
.form-control-modern {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    color: #475569;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-control-modern:focus {
    border-color: var(--light-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
        0 4px 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.form-control-modern::placeholder {
    color: #cbd5e1;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-control-modern {
    padding-right: 50px;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.3s ease;
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--light-blue);
    background: rgba(59, 130, 246, 0.1);
}

.password-toggle:focus {
    outline: none;
    color: var(--light-blue);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Submit Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
    box-sizing: border-box;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.7);
}

.btn-login:active {
    transform: translateY(0);
}

/* Alert Messages */
.alert-modern {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger-modern {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border-left-color: #dc2626;
}

.alert-success-modern {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border-left-color: #22c55e;
}

/* Validation Messages */
.text-danger {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* Login Links */
.login-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.login-link {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.login-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: var(--light-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.login-link:hover {
    color: var(--light-blue);
}

.login-link:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-box {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .login-logo img {
        max-width: 220px;
    }

    .login-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .form-control-modern {
        padding: 12px 16px;
        font-size: 15px;
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .login-container {
        padding: 15px;
    }

    .login-box {
        padding: 24px 20px;
    }

    .login-logo img {
        max-width: 180px;
    }
}

/* Loading Animation */
.btn-login.loading {
    pointer-events: none;
    position: relative;
}

.btn-login.loading .loading-text {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Particle Effect - Hidden */
.particles {
    display: none;
}

.particle {
    display: none;
}