/* IP Unblock Request Form - XMLA Dark Glassmorphic Design */

.ip-unblock-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Subtle animated gradient background effect */
.ip-unblock-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0A1422 0%, #162B44 50%, #2A4F6B 100%);
    background-size: 400% 400%;
    animation: subtleShift 20s ease infinite;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

@keyframes subtleShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.ip-unblock-form-wrapper {
    width: 100%;
    max-width: 500px;
    perspective: 1000px;
    position: relative;
}

/* XMLA Glassmorphic card */
.ip-unblock-form-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ip-unblock-form-card:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 120, 184, 0.3);
    box-shadow:
        0 12px 48px 0 rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(43, 120, 184, 0.1) inset,
        0 0 40px rgba(43, 120, 184, 0.1);
}

/* Subtle XMLA blue accent on top edge */
.ip-unblock-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(59, 142, 208, 0.4) 25%,
        rgba(43, 120, 184, 0.6) 50%,
        rgba(59, 142, 208, 0.4) 75%,
        transparent
    );
    animation: subtleGlow 4s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

/* Form header */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B8ED0, #2B78B8);
    box-shadow: 0 8px 24px rgba(43, 120, 184, 0.3);
}

.form-icon svg {
    color: white;
    stroke: currentColor;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #3B8ED0 0%, #2B78B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

/* Form styles */
.ip-unblock-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(43, 120, 184, 0.6);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 0 0 3px rgba(43, 120, 184, 0.15),
        0 2px 12px rgba(43, 120, 184, 0.2);
    transform: translateY(-1px);
}

.form-group input[readonly] {
    background: rgba(43, 120, 184, 0.12);
    border-color: rgba(43, 120, 184, 0.3);
    color: rgba(59, 142, 208, 1);
    font-weight: 600;
    cursor: not-allowed;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 400;
}

/* Submit button */
.form-actions {
    margin-top: 0.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.98);
    background: linear-gradient(180deg, #3B8ED0 0%, #2B78B8 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 16px rgba(43, 120, 184, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #4A9FE0 0%, #3688C8 100%);
    box-shadow:
        0 6px 24px rgba(43, 120, 184, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form messages */
.form-message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: rgba(59, 142, 208, 0.15);
    border: 1px solid rgba(59, 142, 208, 0.4);
    color: rgba(59, 142, 208, 1);
    font-weight: 500;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: rgba(248, 113, 113, 1);
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 640px) {
    .ip-unblock-form-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .form-group input {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}


/* Loading animation for button */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn.loading .btn-loader::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
